Clear signal handlers before event_reinit as apparently it can otherwise

cause libevent to go strange.
This commit is contained in:
nicm 2015-06-01 09:20:19 +00:00
parent 7e067cb9dc
commit 58b50fb543

View File

@ -129,9 +129,9 @@ server_start(int lockfd, char *lockfile)
fatal("daemon failed"); fatal("daemon failed");
/* event_init() was called in our parent, need to reinit. */ /* event_init() was called in our parent, need to reinit. */
clear_signals(0);
if (event_reinit(ev_base) != 0) if (event_reinit(ev_base) != 0)
fatal("event_reinit failed"); fatal("event_reinit failed");
clear_signals(0);
logfile("server"); logfile("server");
log_debug("server started, pid %ld", (long) getpid()); log_debug("server started, pid %ld", (long) getpid());