aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat_libevent.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2009-06-18 10:07:26 -0400
committerNick Mathewson <nickm@torproject.org>2009-06-18 10:07:26 -0400
commit94e8c34cb770e2206bd0dbf96c3a36137355171d (patch)
tree97275a73a40623f15214bc5b3154461117359d9f /src/common/compat_libevent.c
parent02e099d16f85e24247757599f063eff2112d22dd (diff)
downloadtor-94e8c34cb770e2206bd0dbf96c3a36137355171d.tar
tor-94e8c34cb770e2206bd0dbf96c3a36137355171d.tar.gz
Set EV_PERSIST flag on signal events with Libevent < 2.0.
Fix for bug 1007.
Diffstat (limited to 'src/common/compat_libevent.c')
-rw-r--r--src/common/compat_libevent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 793e17447..32c6d4c8b 100644
--- a/src/common/compat_libevent.c
+++ b/src/common/compat_libevent.c
@@ -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