mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
326dd8b335
commit
6bd9287891
@ -13,7 +13,7 @@ from Queue import Queue
|
|||||||
from contextlib import closing
|
from contextlib import closing
|
||||||
from binascii import unhexlify
|
from binascii import unhexlify
|
||||||
from calibre import prints
|
from calibre import prints
|
||||||
from calibre.constants import iswindows
|
from calibre.constants import iswindows, isosx
|
||||||
|
|
||||||
PARALLEL_FUNCS = {
|
PARALLEL_FUNCS = {
|
||||||
'lrfviewer' :
|
'lrfviewer' :
|
||||||
@ -82,11 +82,10 @@ def get_func(name):
|
|||||||
return func, notification
|
return func, notification
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
# Close open file descriptors inherited from parent
|
|
||||||
# as windows locks open files
|
|
||||||
if iswindows:
|
if iswindows:
|
||||||
|
# Close open file descriptors inherited from parent
|
||||||
|
# On Unix this is done by the subprocess module
|
||||||
os.closerange(3, MAXFD)
|
os.closerange(3, MAXFD)
|
||||||
from calibre.constants import isosx
|
|
||||||
if isosx and 'CALIBRE_WORKER_ADDRESS' not in os.environ:
|
if isosx and 'CALIBRE_WORKER_ADDRESS' not in os.environ:
|
||||||
# On some OS X computers launchd apparently tries to
|
# On some OS X computers launchd apparently tries to
|
||||||
# launch the last run process from the bundle
|
# launch the last run process from the bundle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user