Windows daemon mode workaround

This commit is contained in:
Peter Šurda 2017-09-23 18:25:41 +02:00
parent cfa84cf81a
commit aaa5e9d309
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -349,6 +349,7 @@ class Main:
shared.thisapp.lockPid = None # indicate we're the final child shared.thisapp.lockPid = None # indicate we're the final child
sys.stdout.flush() sys.stdout.flush()
sys.stderr.flush() sys.stderr.flush()
if not sys.platform.startswith('win'):
si = file(os.devnull, 'r') si = file(os.devnull, 'r')
so = file(os.devnull, 'a+') so = file(os.devnull, 'a+')
se = file(os.devnull, 'a+', 0) se = file(os.devnull, 'a+', 0)