]> granicus.if.org Git - libevent/commitdiff
EVENT_SHOW_METHOD environment prints which event mechanism we are using;
authorNiels Provos <provos@gmail.com>
Sun, 30 Mar 2003 20:19:07 +0000 (20:19 +0000)
committerNiels Provos <provos@gmail.com>
Sun, 30 Mar 2003 20:19:07 +0000 (20:19 +0000)
from Davide Libenzi <davidel@xmailserver.org>

svn:r60

event.c

diff --git a/event.c b/event.c
index 1bf545c47dc8eb304ef1fe29897c273e96fdde02..e31e49b603db6729e61bc73e6f11dcb72ace30a2 100644 (file)
--- 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);