From 3ed5e56a3974016dad9c28f42356aba9c05e0f4c Mon Sep 17 00:00:00 2001 From: Nicholas Marriott Date: Fri, 23 Aug 2013 15:25:05 +0100 Subject: [PATCH] Set EVENT_NOEPOLL on Linux again. --- osdep-linux.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/osdep-linux.c b/osdep-linux.c index b65acffc..ccac2670 100644 --- a/osdep-linux.c +++ b/osdep-linux.c @@ -84,14 +84,7 @@ osdep_get_cwd(int fd) struct event_base * osdep_event_init(void) { - /* - * On Linux, epoll doesn't work on /dev/null (yes, really). - * - * This has been commented because libevent versions up until the very - * latest (1.4 git or 2.0.10) do not handle signals properly when using - * poll or select, causing hangs. - * - */ - /* setenv("EVENT_NOEPOLL", "1", 1); */ + /* On Linux, epoll doesn't work on /dev/null (yes, really). */ + setenv("EVENT_NOEPOLL", "1", 1); return (event_init()); }