mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Remove code path for updated source without binary support
This commit is contained in:
parent
417abafe73
commit
2174d7d8aa
@ -47,15 +47,7 @@ def daemonize(): # {{{
|
|||||||
raise SystemExit('fork #2 failed: %s' % as_unicode(e))
|
raise SystemExit('fork #2 failed: %s' % as_unicode(e))
|
||||||
|
|
||||||
# Redirect standard file descriptors.
|
# Redirect standard file descriptors.
|
||||||
try:
|
|
||||||
plugins['speedup'][0].detach(os.devnull)
|
plugins['speedup'][0].detach(os.devnull)
|
||||||
except AttributeError: # people running from source without updated binaries
|
|
||||||
si = os.open(os.devnull, os.O_RDONLY)
|
|
||||||
so = os.open(os.devnull, os.O_WRONLY)
|
|
||||||
se = os.open(os.devnull, os.O_WRONLY)
|
|
||||||
os.dup2(si, sys.stdin.fileno())
|
|
||||||
os.dup2(so, sys.stdout.fileno())
|
|
||||||
os.dup2(se, sys.stderr.fileno())
|
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user