Sync OpenBSD patchset 751:

Do not call event_del() for signals after fork(), just use sigaction()
directly instead - calling libevent functions after fork() w/o
event_reinit() is a bad idea, even if in this case it was harmless.
This commit is contained in:
Tiago Cunha
2010-08-29 14:42:11 +00:00
parent e6bb3d6942
commit 56040be346
7 changed files with 37 additions and 22 deletions

View File

@ -1,4 +1,4 @@
/* $Id: server.c,v 1.242 2010-06-22 23:21:39 tcunha Exp $ */
/* $Id: server.c,v 1.243 2010-08-29 14:42:11 tcunha Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -143,7 +143,7 @@ server_start(char *path)
/* event_init() was called in our parent, need to reinit. */
if (event_reinit(ev_base) != 0)
fatal("event_reinit failed");
clear_signals();
clear_signals(0);
logfile("server");
log_debug("server started, pid %ld", (long) getpid());