diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-12-30 20:41:08 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2010-12-30 20:41:08 +0000 |
commit | 436f3b357ee6a960621c319b7904aeed1cccead4 (patch) | |
tree | d5ef34bc8cc43d81c3582645b61724ca2200df47 /tmux.c | |
parent | ba89a048edeebb34f03a46b5ecc789655f7d223d (diff) | |
download | rtmux-436f3b357ee6a960621c319b7904aeed1cccead4.tar.gz rtmux-436f3b357ee6a960621c319b7904aeed1cccead4.tar.bz2 rtmux-436f3b357ee6a960621c319b7904aeed1cccead4.zip |
epoll on Linux is broken with /dev/null so it needs to be disabled.
Instead of adding another BROKEN_* define, move event_init into
osdep-*.c.
Diffstat (limited to 'tmux.c')
-rw-r--r-- | tmux.c | 18 |
1 files changed, 2 insertions, 16 deletions
@@ -1,4 +1,4 @@ -/* $Id: tmux.c,v 1.228 2010-12-27 21:22:24 tcunha Exp $ */ +/* $Id: tmux.c,v 1.229 2010-12-30 20:41:08 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -495,20 +495,6 @@ main(int argc, char **argv) #endif /* Pass control to the client. */ -#ifdef HAVE_BROKEN_KQUEUE - if (setenv("EVENT_NOKQUEUE", "1", 1) != 0) - fatal("setenv failed"); -#endif -#ifdef HAVE_BROKEN_POLL - if (setenv("EVENT_NOPOLL", "1", 1) != 0) - fatal("setenv failed"); -#endif - ev_base = event_init(); -#ifdef HAVE_BROKEN_KQUEUE - unsetenv("EVENT_NOKQUEUE"); -#endif -#ifdef HAVE_BROKEN_POLL - unsetenv("EVENT_NOPOLL"); -#endif + ev_base = osdep_event_init(); exit(client_main(argc, argv, flags)); } |