EVENT_SHOW_METHOD environment prints which event mechanism we are using;

from Davide Libenzi <davidel@xmailserver.org>


svn:r60
This commit is contained in:
Niels Provos 2003-03-30 20:19:07 +00:00
parent 012a0b53e1
commit 04153adb66

View File

@ -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);