]> granicus.if.org Git - libevent/commitdiff
Warn when unable to construct base because of failing make_base_notifiable
authorNick Mathewson <nickm@torproject.org>
Mon, 14 Nov 2011 22:32:22 +0000 (17:32 -0500)
committerNick Mathewson <nickm@torproject.org>
Mon, 14 Nov 2011 22:32:22 +0000 (17:32 -0500)
event.c

diff --git a/event.c b/event.c
index 809a01aef3e96f1cd4305d099ae79eb07996944f..046b109b388715bf4b204046e77b4f47a311908e 100644 (file)
--- a/event.c
+++ b/event.c
@@ -633,6 +633,7 @@ event_base_new_with_config(const struct event_config *cfg)
                EVTHREAD_ALLOC_COND(base->current_event_cond);
                r = evthread_make_base_notifiable(base);
                if (r<0) {
+                       event_warnx("%s: Unable to make base notifiable.", __func__);
                        event_base_free(base);
                        return NULL;
                }