{"action":"opened","issue":{"url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3957","repository_url":"https://api.github.com/repos/pyinstaller/pyinstaller","labels_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3957/labels{/name}","comments_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3957/comments","events_url":"https://api.github.com/repos/pyinstaller/pyinstaller/issues/3957/events","html_url":"https://github.com/pyinstaller/pyinstaller/issues/3957","id":395017420,"node_id":"MDU6SXNzdWUzOTUwMTc0MjA=","number":3957,"title":"Pyinstaller multiprocessing name of process is always \"MainProcess\"","user":{"login":"Indiana3714","id":41246263,"node_id":"MDQ6VXNlcjQxMjQ2MjYz","avatar_url":"https://avatars1.githubusercontent.com/u/41246263?v=4","gravatar_id":"","url":"https://api.github.com/users/Indiana3714","html_url":"https://github.com/Indiana3714","followers_url":"https://api.github.com/users/Indiana3714/followers","following_url":"https://api.github.com/users/Indiana3714/following{/other_user}","gists_url":"https://api.github.com/users/Indiana3714/gists{/gist_id}","starred_url":"https://api.github.com/users/Indiana3714/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Indiana3714/subscriptions","organizations_url":"https://api.github.com/users/Indiana3714/orgs","repos_url":"https://api.github.com/users/Indiana3714/repos","events_url":"https://api.github.com/users/Indiana3714/events{/privacy}","received_events_url":"https://api.github.com/users/Indiana3714/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-31T18:34:29Z","updated_at":"2018-12-31T18:34:29Z","closed_at":null,"author_association":"NONE","body":"Here's my test code (py 2.7 on Windows):\r\n\r\n```\r\nimport multiprocessing\r\n\r\nprint multiprocessing.current_process().name\r\nprint type(multiprocessing.current_process())\r\nprint type(multiprocessing.current_process().name)\r\n\r\ndef main():\r\n    pass\r\n\r\nif __name__ == \"__main__\":\r\n    multiprocessing.freeze_support()\r\n    p = multiprocessing.Process(target=main, name=\"My Child Process\")\r\n    p.start()\r\n```\r\n\r\nWithout compiling, the code works fine as it prints out \r\n```\r\nMainProcess\r\n<class 'multiprocessing.process._MainProcess'>\r\n<type 'str'>\r\nMy Child Process\r\n<class 'multiprocessing.process._MainProcess'>\r\n<type 'str'>\r\n```\r\n\r\nAfter using pyinstaller on it, unfortunately it will always default to \"MainProcess\". Result as follows:\r\n```\r\nMainProcess\r\n<class 'multiprocessing.process._MainProcess'>\r\n<type 'str'>\r\nMainProcess\r\n<class 'multiprocessing.process._MainProcess'>\r\n<type 'str'>\r\n```\r\n"}}
{"actor":{"display_login":"Indiana3714"}}