mirror of
https://github.com/tmux/tmux.git
synced 2024-12-04 11:55:56 +00:00
Looks like evports on SunOS are broken also, disable them. GitHub issue 2702.
This commit is contained in:
parent
47af583a50
commit
434ac8734a
@ -96,5 +96,17 @@ osdep_get_cwd(int fd)
|
|||||||
struct event_base *
|
struct event_base *
|
||||||
osdep_event_init(void)
|
osdep_event_init(void)
|
||||||
{
|
{
|
||||||
return (event_init());
|
struct event_base *base;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* On Illumos, evports don't seem to work properly. It is not clear if
|
||||||
|
* this a problem in libevent, with the way tmux uses file descriptors,
|
||||||
|
* or with some types of file descriptor. But using poll instead is
|
||||||
|
* fine.
|
||||||
|
*/
|
||||||
|
setenv("EVENT_NOEVPORT", "1", 1);
|
||||||
|
|
||||||
|
base = event_init();
|
||||||
|
unsetenv("EVENT_NOEVPORT");
|
||||||
|
return (base);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user