]> granicus.if.org Git - libevent/commitdiff
Add a check for event_add failure to evthread_make_base_notifiable()
authorNick Mathewson <nickm@torproject.org>
Fri, 17 Jul 2009 18:38:14 +0000 (18:38 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 17 Jul 2009 18:38:14 +0000 (18:38 +0000)
svn:r1348

event.c

diff --git a/event.c b/event.c
index ce325aff82027020d0a3921eedaf3e267ef08e7f..29ed43b9ef69e91ca77aaa2119cc4107b515ae46 100644 (file)
--- a/event.c
+++ b/event.c
@@ -1784,9 +1784,7 @@ evthread_make_base_notifiable(struct event_base *base)
        /* we need to mark this as internal event */
        base->th_notify.ev_flags |= EVLIST_INTERNAL;
 
-       event_add(&base->th_notify, NULL);
-
-       return 0;
+       return event_add(&base->th_notify, NULL);
 }
 
 void