aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2013-08-23 15:25:05 +0100
committerThomas <thomas@xteddy.org>2013-10-11 14:36:28 +0100
commitd8d746b4b830c2b36a7d1667ee620535b89b57f4 (patch)
tree6e9804cf53f3bf454b5fd5929ef5f78760bcfc65
parent570028e9c011340a9cb5adbebba8bf51686c4d36 (diff)
downloadrtmux-d8d746b4b830c2b36a7d1667ee620535b89b57f4.tar.gz
rtmux-d8d746b4b830c2b36a7d1667ee620535b89b57f4.tar.bz2
rtmux-d8d746b4b830c2b36a7d1667ee620535b89b57f4.zip
Set EVENT_NOEPOLL on Linux again.
-rw-r--r--osdep-linux.c11
1 files 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());
}