Set EVENT_NOEPOLL on Linux again.

pull/1/head
Nicholas Marriott 2013-08-23 15:25:05 +01:00
parent aa4920fea3
commit 3ed5e56a39
1 changed files with 2 additions and 9 deletions

View File

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