This commit is contained in:
Kovid Goyal 2011-08-29 18:54:28 -06:00
parent e15c223b37
commit 8b788b7e95

View File

@ -152,6 +152,12 @@ def get_func(name):
def main():
if iswindows:
if '--multiprocessing-fork' in sys.argv:
# We are using the multiprocessing module on windows to launch a
# worker process
from multiprocessing import freeze_support
freeze_support()
return 0
# Close open file descriptors inherited from parent
# On Unix this is done by the subprocess module
os.closerange(3, 256)