diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2018-02-05 14:44:03 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2018-07-03 11:12:18 +0100 |
commit | e000d30ed9e0287d2a1c7ba78de781ff1674233a (patch) | |
tree | 52922328bfd4eaf033faf1c7edd871ae1dd2c45a | |
parent | 53c8ebd82377d410305af78cf6d2a3b813049872 (diff) |
XXX reopen syslog connection
-rw-r--r-- | src/spice-streaming-agent.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/spice-streaming-agent.cpp b/src/spice-streaming-agent.cpp index 1c3c4f9..e41b732 100644 --- a/src/spice-streaming-agent.cpp +++ b/src/spice-streaming-agent.cpp @@ -516,6 +516,9 @@ int main(int argc, char* argv[]) int streamfd; run_daemon(stream_port_name, streamfd); + closelog(); + openlog("spice-streaming-agent", + isatty(fileno(stderr)) ? (LOG_PERROR|LOG_PID) : LOG_PID, LOG_USER); // this should be done after the fork to avoid duplicating // resources |