Set EV_PERSIST flag on signal events with Libevent < 2.0.

Fix for bug 1007.
This commit is contained in:
Nick Mathewson 2009-06-18 10:07:26 -04:00
parent 02e099d16f
commit 94e8c34cb7

View File

@ -131,7 +131,7 @@ struct event *
tor_evsignal_new(struct event_base * base, int sig,
void (*cb)(int, short, void *), void *arg)
{
return tor_event_new(base, sig, EV_SIGNAL, cb, arg);
return tor_event_new(base, sig, EV_SIGNAL|EV_PERSIST, cb, arg);
}
/** Work-alike replacement for event_free() on pre-Libevent-2.0 systems. */
void