summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/server.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2015-06-01 09:20:19 +0000
committernicm <nicm@openbsd.org>2015-06-01 09:20:19 +0000
commitf32440d8367f8c49d0dd3438a95ef5c246c6cf4b (patch)
treefe3dcb9fe30b77d4cdaad871d8e344719cdb8d89 /usr.bin/tmux/server.c
parentConvert tun(4) to if_input(). (diff)
downloadwireguard-openbsd-f32440d8367f8c49d0dd3438a95ef5c246c6cf4b.tar.xz
wireguard-openbsd-f32440d8367f8c49d0dd3438a95ef5c246c6cf4b.zip
Clear signal handlers before event_reinit as apparently it can otherwise
cause libevent to go strange.
Diffstat (limited to 'usr.bin/tmux/server.c')
-rw-r--r--usr.bin/tmux/server.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tmux/server.c b/usr.bin/tmux/server.c
index 3d7cbde4cb7..53d65d55a91 100644
--- a/usr.bin/tmux/server.c
+++ b/usr.bin/tmux/server.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: server.c,v 1.124 2015/05/31 23:27:06 deraadt Exp $ */
+/* $OpenBSD: server.c,v 1.125 2015/06/01 09:20:19 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -129,9 +129,9 @@ server_start(int lockfd, char *lockfile)
fatal("daemon failed");
/* event_init() was called in our parent, need to reinit. */
+ clear_signals(0);
if (event_reinit(ev_base) != 0)
fatal("event_reinit failed");
- clear_signals(0);
logfile("server");
log_debug("server started, pid %ld", (long) getpid());