From 2174d7d8aa970c06518a99b0d4cf4d6b2ae8d2bb Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 17 Jun 2017 09:30:35 +0530 Subject: [PATCH] Remove code path for updated source without binary support --- src/calibre/srv/standalone.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/calibre/srv/standalone.py b/src/calibre/srv/standalone.py index b822f3aff8..1615482b74 100644 --- a/src/calibre/srv/standalone.py +++ b/src/calibre/srv/standalone.py @@ -47,15 +47,7 @@ def daemonize(): # {{{ raise SystemExit('fork #2 failed: %s' % as_unicode(e)) # Redirect standard file descriptors. - try: - 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()) + plugins['speedup'][0].detach(os.devnull) # }}}