mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-12 22:10:12 -04:00
Warn when unable to construct base because of failing make_base_notifiable
This commit is contained in:
parent
7353663eb7
commit
4e797f388f
1
event.c
1
event.c
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user