From 04153adb66e1456de3efad0e9ce183e57f99b47d Mon Sep 17 00:00:00 2001 From: Niels Provos Date: Sun, 30 Mar 2003 20:19:07 +0000 Subject: [PATCH] EVENT_SHOW_METHOD environment prints which event mechanism we are using; from Davide Libenzi svn:r60 --- event.c | 3 +++ 1 file changed, 3 insertions(+) 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);