aboutsummaryrefslogtreecommitdiff
path: root/osdep-linux.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep-linux.c')
-rw-r--r--osdep-linux.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/osdep-linux.c b/osdep-linux.c
index 42712dea..5f0d9352 100644
--- a/osdep-linux.c
+++ b/osdep-linux.c
@@ -92,7 +92,12 @@ osdep_get_cwd(int fd)
struct event_base *
osdep_event_init(void)
{
+ struct event_base *base;
+
/* On Linux, epoll doesn't work on /dev/null (yes, really). */
setenv("EVENT_NOEPOLL", "1", 1);
- return (event_init());
+
+ base = event_init();
+ unsetenv("EVENT_NOEPOLL");
+ return (base);
}