[or-cvs] [tor/master] Set EV_PERSIST flag on signal events with Libevent < 2.0.

Nick Mathewson nickm at seul.org
Thu Jun 18 14:07:51 UTC 2009


Author: Nick Mathewson <nickm at torproject.org>
Date: Thu, 18 Jun 2009 10:07:26 -0400
Subject: Set EV_PERSIST flag on signal events with Libevent < 2.0.
Commit: 94e8c34cb770e2206bd0dbf96c3a36137355171d

Fix for bug 1007.
---
 src/common/compat_libevent.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/common/compat_libevent.c b/src/common/compat_libevent.c
index 793e174..32c6d4c 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
-- 
1.5.6.5



More information about the tor-commits mailing list