From 58b50fb543168128f1eef30ad9908cf27ee91f41 Mon Sep 17 00:00:00 2001 From: nicm Date: Mon, 1 Jun 2015 09:20:19 +0000 Subject: [PATCH] Clear signal handlers before event_reinit as apparently it can otherwise cause libevent to go strange. --- server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.c b/server.c index 6438fe6d..b53648f0 100644 --- a/server.c +++ b/server.c @@ -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());