1
0
mirror of https://github.com/tmux/tmux.git synced 2025-04-11 03:28:49 +00:00

Apple appear to have fixed kqueue in some OS X version (will wonder never

cease!) so use it since it appears to be faster.
This commit is contained in:
Nicholas Marriott 2020-04-18 11:45:49 +01:00
parent e1799ed7c8
commit 94c90385d2

View File

@ -93,15 +93,19 @@ osdep_event_init(void)
{
struct event_base *base;
#ifndef __MAC_10_7
/*
* On OS X, kqueue and poll are both completely broken and don't
* work on anything except socket file descriptors (yes, really).
*/
setenv("EVENT_NOKQUEUE", "1", 1);
setenv("EVENT_NOPOLL", "1", 1);
#endif
base = event_init();
#ifndef __MAC_10_7
unsetenv("EVENT_NOKQUEUE");
unsetenv("EVENT_NOPOLL");
#endif
return (base);
}