Explorar o código

Set EV_PERSIST flag on signal events with Libevent < 2.0.

Fix for bug 1007.
Nick Mathewson %!s(int64=16) %!d(string=hai) anos
pai
achega
94e8c34cb7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/common/compat_libevent.c

+ 1 - 1
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