From 638116cacd7e6239760fc8ddd76f046a921549c2 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 17 Jul 2009 18:38:14 +0000 Subject: [PATCH] Add a check for event_add failure to evthread_make_base_notifiable() svn:r1348 --- event.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.40.0