From: Niels Provos Date: Sun, 30 Mar 2003 20:19:07 +0000 (+0000) Subject: EVENT_SHOW_METHOD environment prints which event mechanism we are using; X-Git-Tag: release-1.1b~109 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04153adb66e1456de3efad0e9ce183e57f99b47d;p=libevent EVENT_SHOW_METHOD environment prints which event mechanism we are using; from Davide Libenzi svn:r60 --- diff --git a/event.c b/event.c index 1bf545c4..e31e49b6 100644 --- a/event.c +++ b/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);