mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
e15c223b37
commit
8b788b7e95
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user