mirror of
https://github.com/libevent/libevent.git
synced 2025-01-09 00:56:20 +08:00
EVENT_SHOW_METHOD environment prints which event mechanism we are using;
from Davide Libenzi <davidel@xmailserver.org> svn:r60
This commit is contained in:
parent
012a0b53e1
commit
04153adb66
3
event.c
3
event.c
@ -144,6 +144,9 @@ event_init(void)
|
||||
if (evbase == NULL)
|
||||
errx(1, "%s: no event mechanism available", __func__);
|
||||
|
||||
if (getenv("EVENT_SHOW_METHOD"))
|
||||
fprintf(stderr, "libevent using: %s\n", evsel->name);
|
||||
|
||||
#if defined(USE_LOG) && defined(USE_DEBUG)
|
||||
log_to(stderr);
|
||||
log_debug_cmd(LOG_MISC, 80);
|
||||
|
Loading…
x
Reference in New Issue
Block a user