try to fix stdout broken pipe
parent
e3b8e12dfb
commit
e310ffc4e2
|
@ -114,8 +114,14 @@ def daemon():
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
cleanup.delete_run_files()
|
cleanup.delete_run_files()
|
||||||
sys.stderr.close()
|
try:
|
||||||
sys.stdout.close()
|
sys.stderr.close()
|
||||||
|
except (IOError, BrokenPipeError) as e:
|
||||||
|
pass
|
||||||
|
try:
|
||||||
|
sys.stdout.close()
|
||||||
|
except (IOError, BrokenPipeError) as e:
|
||||||
|
pass
|
||||||
|
|
||||||
def _ignore_sigint(sig, frame):
|
def _ignore_sigint(sig, frame):
|
||||||
'''This space intentionally left blank'''
|
'''This space intentionally left blank'''
|
||||||
|
|
Loading…
Reference in New Issue