mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Close open file descriptors in calibre worker processes
This commit is contained in:
parent
284089aabc
commit
b16ede44fb
@ -76,6 +76,8 @@ def get_func(name):
|
||||
return func, notification
|
||||
|
||||
def main():
|
||||
# Close open file descriptors inherited from parent
|
||||
os.closerange(3, 1000)
|
||||
from calibre.constants import isosx
|
||||
if isosx and 'CALIBRE_WORKER_ADDRESS' not in os.environ:
|
||||
# On some OS X computers launchd apparently tries to
|
||||
|
Loading…
x
Reference in New Issue
Block a user