From: nicm Date: Mon, 1 Jun 2015 09:20:19 +0000 (+0000) Subject: Clear signal handlers before event_reinit as apparently it can otherwise X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=f32440d8367f8c49d0dd3438a95ef5c246c6cf4b;p=openbsd Clear signal handlers before event_reinit as apparently it can otherwise cause libevent to go strange. --- 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 @@ -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());