Skip to content

Commit

Permalink
Looks like evports on SunOS are broken also, disable them. GitHub iss…
Browse files Browse the repository at this point in the history
…ue 2702.
  • Loading branch information
nicm committed May 10, 2021
1 parent f2951bd commit d00d682
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion osdep-sunos.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,5 +96,17 @@ osdep_get_cwd(int fd)
struct event_base *
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);
}

0 comments on commit d00d682

Please sign in to comment.