aboutsummaryrefslogtreecommitdiff
path: root/tmux.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2009-11-11 09:54:07 +0000
committerNicholas Marriott <nicholas.marriott@gmail.com>2009-11-11 09:54:07 +0000
commit7230fe1648831a17165201b6f02e0365f7b5f938 (patch)
treea09284b7e99839a3daf49e58b140dc604904f91f /tmux.c
parent60869fa4c37815b1fd020cbe730ae457d105a0e0 (diff)
downloadrtmux-7230fe1648831a17165201b6f02e0365f7b5f938.tar.gz
rtmux-7230fe1648831a17165201b6f02e0365f7b5f938.tar.bz2
rtmux-7230fe1648831a17165201b6f02e0365f7b5f938.zip
OS X is still broken, so ask libevent not to use kqueue or poll.
Diffstat (limited to 'tmux.c')
-rw-r--r--tmux.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/tmux.c b/tmux.c
index bb93d12a..9d3ecaa5 100644
--- a/tmux.c
+++ b/tmux.c
@@ -1,4 +1,4 @@
-/* $Id: tmux.c,v 1.187 2009-11-10 23:34:03 tcunha Exp $ */
+/* $Id: tmux.c,v 1.188 2009-11-11 09:54:07 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@@ -488,7 +488,21 @@ main(int argc, char **argv)
exit(1);
xfree(path);
+#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
event_init();
+#ifdef HAVE_BROKEN_KQUEUE
+ unsetenv("EVENT_NOKQUEUE");
+#endif
+#ifdef HAVE_BROKEN_POLL
+ unsetenv("EVENT_NOPOLL");
+#endif
imsg_compose(main_ibuf, msg, PROTOCOL_VERSION, -1, -1, buf, len);