{"action":"opened","issue":{"url":"https://api.github.com/repos/yagweb/PyRun/issues/3","repository_url":"https://api.github.com/repos/yagweb/PyRun","labels_url":"https://api.github.com/repos/yagweb/PyRun/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/yagweb/PyRun/issues/3/comments","events_url":"https://api.github.com/repos/yagweb/PyRun/issues/3/events","html_url":"https://github.com/yagweb/PyRun/issues/3","id":382994258,"node_id":"MDU6SXNzdWUzODI5OTQyNTg=","number":3,"title":"freeze_support is not working","user":{"login":"yagweb","id":13247575,"node_id":"MDQ6VXNlcjEzMjQ3NTc1","avatar_url":"https://avatars1.githubusercontent.com/u/13247575?v=4","gravatar_id":"","url":"https://api.github.com/users/yagweb","html_url":"https://github.com/yagweb","followers_url":"https://api.github.com/users/yagweb/followers","following_url":"https://api.github.com/users/yagweb/following{/other_user}","gists_url":"https://api.github.com/users/yagweb/gists{/gist_id}","starred_url":"https://api.github.com/users/yagweb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yagweb/subscriptions","organizations_url":"https://api.github.com/users/yagweb/orgs","repos_url":"https://api.github.com/users/yagweb/repos","events_url":"https://api.github.com/users/yagweb/events{/privacy}","received_events_url":"https://api.github.com/users/yagweb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-21T07:47:43Z","updated_at":"2018-11-21T07:47:43Z","closed_at":null,"author_association":"OWNER","body":"I don't know where to put this sentence, it's not working currently.\r\n\r\nRef:\r\nQ: Why does the multiprocessing module need to call a specific function to work when being \"frozen\" to produce a windows executable?\r\n\r\nA: The reason is lack of fork() on Windows (which is not entirely true). Because of this, on Windows the fork is simulated by creating a new process in which code, which on Linux is being run in child process, is being run. As the code is to be run in technically unrelated process, it has to be delivered there before it can be run. The way it's being delivered is first it's being pickled and then sent through the pipe from the original process to the new one. In addition this new process is **being informed it has to run the code passed by pipe, by passing --multiprocessing-fork command line argument to it, pid and pipeid also passed to it by argv parameters**. If you take a look at implementation of freeze_support() function its task is to check if the process it's being run in is supposed to run code passed by pipe or not."}}
{"actor":{"display_login":"yagweb"}}