From: Nick Mathewson Date: Fri, 17 Jul 2009 18:38:14 +0000 (+0000) Subject: Add a check for event_add failure to evthread_make_base_notifiable() X-Git-Tag: release-2.0.3-alpha~180 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=638116cacd7e6239760fc8ddd76f046a921549c2;p=libevent Add a check for event_add failure to evthread_make_base_notifiable() svn:r1348 --- diff --git a/event.c b/event.c index ce325aff..29ed43b9 100644 --- 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