From 46177c7c9f18dc42f462f7aca9d0f14ca1fec33c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 18 Jan 2018 16:50:24 +0100 Subject: [PATCH] qmemman: do not close stdout/stderr in daemon mode Allow exceptions to be logged to syslog/journald --- qubes/tools/qmemmand.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qubes/tools/qmemmand.py b/qubes/tools/qmemmand.py index 24ae5f9d..640e8051 100644 --- a/qubes/tools/qmemmand.py +++ b/qubes/tools/qmemmand.py @@ -242,10 +242,6 @@ def main(): ha_file.setFormatter( logging.Formatter('%(asctime)s %(name)s[%(process)d]: %(message)s')) logging.root.addHandler(ha_stderr) - else: - # close io - sys.stdout.close() - sys.stderr.close() sys.stdin.close()