diff options
author | nicm <nicm> | 2015-10-31 13:12:03 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-10-31 13:12:03 +0000 |
commit | abb4e9e2fa68c38f71fedc6d1ce2e78fcaa59495 (patch) | |
tree | 0b5c51da4b7da02d7bbc531ff1a19e281b2c3e25 /server.c | |
parent | 01defc9f4965bb174e1d1295754d5a8695683054 (diff) | |
download | rtmux-abb4e9e2fa68c38f71fedc6d1ce2e78fcaa59495.tar.gz rtmux-abb4e9e2fa68c38f71fedc6d1ce2e78fcaa59495.tar.bz2 rtmux-abb4e9e2fa68c38f71fedc6d1ce2e78fcaa59495.zip |
The output log is only useful once and it means creating a file, so open
it once at startup instead of in every call to tty_open.
Diffstat (limited to 'server.c')
-rw-r--r-- | server.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -173,6 +173,8 @@ server_start(struct event_base *base, int lockfd, char *lockfile) } close(pair[0]); + if (debug_level > 3) + tty_create_log(); if (pledge("stdio rpath wpath cpath fattr unix recvfd proc exec tty " "ps", NULL) != 0) fatal("pledge failed"); |