mirror of
https://github.com/tmate-io/tmate.git
synced 2024-11-08 09:14:22 +01:00
Clear signal handlers before event_reinit as apparently it can otherwise
cause libevent to go strange.
This commit is contained in:
parent
7e067cb9dc
commit
58b50fb543
2
server.c
2
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());
|
||||
|
Loading…
Reference in New Issue
Block a user