mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:22:40 +02:00
Close open file descriptors in calibre worker processes
This commit is contained in:
parent
284089aabc
commit
b16ede44fb
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue