[Python-ideas] multiprocessing, freeze support by default for Pool

Bradley Phillips bradleyp81+python-ideas at gmail.com
Wed May 23 20:52:30 EDT 2018


Hi All

There are about 347 results for the following query on the google search
engine:
"python multiprocessing pyinstaller crash site:stackoverflow.com"

The windows fork bomb is a known frequent occurrence. I know that
freeze_support is supposed to be called but this issue still catches me out
most times (and many others).

I propose adding to line 117 of multiprocessing/context.py
        if (sys.platform == 'win32'):
            self.freeze_support()

Thanks
Regards
Brad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20180524/2e284da5/attachment.html>


More information about the Python-ideas mailing list