Warn when unable to construct base because of failing make_base_notifiable

This commit is contained in:
Nick Mathewson 2011-11-14 17:32:22 -05:00
parent 7353663eb7
commit 4e797f388f

View File

@ -633,6 +633,7 @@ event_base_new_with_config(const struct event_config *cfg)
EVTHREAD_ALLOC_COND(base->current_event_cond); EVTHREAD_ALLOC_COND(base->current_event_cond);
r = evthread_make_base_notifiable(base); r = evthread_make_base_notifiable(base);
if (r<0) { if (r<0) {
event_warnx("%s: Unable to make base notifiable.", __func__);
event_base_free(base); event_base_free(base);
return NULL; return NULL;
} }