mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-28 06:13:31 +01:00
Set EV_PERSIST flag on signal events with Libevent < 2.0.
Fix for bug 1007.
This commit is contained in:
parent
02e099d16f
commit
94e8c34cb7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user