diff options
author | 2010-07-24 19:25:31 +0000 | |
---|---|---|
committer | 2010-07-24 19:25:31 +0000 | |
commit | 57fbede61a07780ace8600ea11c09e2bdafb3612 (patch) | |
tree | 2225b8a7786b2c662d160903cb41f8ff7c12abb8 /usr.bin/tmux/tmux.c | |
parent | Make pmap_extract() work for large pages. (diff) | |
download | wireguard-openbsd-57fbede61a07780ace8600ea11c09e2bdafb3612.tar.xz wireguard-openbsd-57fbede61a07780ace8600ea11c09e2bdafb3612.zip |
kqueue(2) is currently broken when used with /dev/null and a few other
devices.
An upcoming fix for some problems with the client stdout/stderr handling
relies on it working, so make tmux force libevent to use poll(2) via
EVENT_NOKQUEUE, until we have fixed kqueue.
Diffstat (limited to 'usr.bin/tmux/tmux.c')
-rw-r--r-- | usr.bin/tmux/tmux.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/tmux/tmux.c b/usr.bin/tmux/tmux.c index 644412deaf9..d34b03186de 100644 --- a/usr.bin/tmux/tmux.c +++ b/usr.bin/tmux/tmux.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tmux.c,v 1.84 2010/07/11 17:06:45 nicm Exp $ */ +/* $OpenBSD: tmux.c,v 1.85 2010/07/24 19:25:31 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -532,7 +532,10 @@ main(int argc, char **argv) exit(1); } + if (setenv("EVENT_NOKQUEUE", "1", 1) != 0) + fatal("setenv"); ev_base = event_init(); + unsetenv("EVENT_NOKQUEUE"); set_signals(main_signal); /* Initialise the client socket/start the server. */ |