summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-10-31 13:12:03 +0000
committernicm <nicm@openbsd.org>2015-10-31 13:12:03 +0000
commit6d2e9b468ed73f7b5dcd9e78c8bef7916de7807b (patch)
treef7e3d4898270d437fc1ca2b285cd445baec72e14 /usr.bin/tmux/server.c
parentSplit client-only (at, crontab) functions out of misc.c and into (diff)
downloadwireguard-openbsd-6d2e9b468ed73f7b5dcd9e78c8bef7916de7807b.tar.xz
wireguard-openbsd-6d2e9b468ed73f7b5dcd9e78c8bef7916de7807b.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 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index df145a16a2a..256cbeb597d 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.145 2015/10/27 15:58:42 nicm Exp $ */
+/* $OpenBSD: server.c,v 1.146 2015/10/31 13:12:03 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -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");