summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-06-28 12:00:57 -0400
committerNick Mathewson <nickm@torproject.org>2012-06-28 12:01:38 -0400
commit9cd5acb5114ce00d425c0cca48a396fb591beaf0 (patch)
tree37b996b5bfe73fe0a7509983a1c5602ab168a8b7 /signal.c
parent108896abccc288d7675e7ceed7367172ed5ddbd6 (diff)
downloadlibevent-9cd5acb5114ce00d425c0cca48a396fb591beaf0.tar.gz
Make th_base_lock nonrecursive
This is necessary for making some thread libraries work with event.c, and might get better performance with others. The biggest change required here was that we needed to make some internal code that had previously called event_add and event_del call the nolock variants.
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/signal.c b/signal.c
index e5dd555e..d73e4d99 100644
--- a/signal.c
+++ b/signal.c
@@ -305,7 +305,7 @@ evsig_add(struct event_base *base, evutil_socket_t evsignal, short old, short ev
if (!sig->ev_signal_added) {
- if (event_add(&sig->ev_signal, NULL))
+ if (event_add_nolock_(&sig->ev_signal, NULL, 0))
goto err;
sig->ev_signal_added = 1;
}