aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Marriott <nicholas.marriott@gmail.com>2021-05-10 07:42:35 +0100
committerNicholas Marriott <nicholas.marriott@gmail.com>2021-05-10 07:42:35 +0100
commitd00d6820691947b00a1049a435e702e32453bcbe (patch)
tree4ab29010de06de00f662585dcddb326cfcbc89bd
parentf2951bd4a560692048e68bf29a5b0a288346a7d4 (diff)
downloadrtmux-d00d6820691947b00a1049a435e702e32453bcbe.tar.gz
rtmux-d00d6820691947b00a1049a435e702e32453bcbe.tar.bz2
rtmux-d00d6820691947b00a1049a435e702e32453bcbe.zip
Looks like evports on SunOS are broken also, disable them. GitHub issue 2702.
-rw-r--r--osdep-sunos.c14
1 files changed, 13 insertions, 1 deletions
diff --git a/osdep-sunos.c b/osdep-sunos.c
index 138e6bad..c3563ca4 100644
--- a/osdep-sunos.c
+++ b/osdep-sunos.c
@@ -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);
}