#52224: tmux @2.2 Fix regression on 2.2: avoid using kqueue/poll on OS X ---------------------------------+-------------------------------- Reporter: leonardo.schenkel@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: tmux ---------------------------------+-------------------------------- tmux avoids using libevent's kqueue or poll implementations on OS X because they are considered broken: https://github.com/tmux/tmux/blob/2.2/osdep-darwin.c#L77 However, due to an oversight version 2.2 of tmux does not call the platform-specific initialization code when initializing tmux which means that kqueue and poll are not disabled as intended: https://github.com/tmux/tmux/blob/2.2/tmux.c#L341 This was later found and fixed in upstream: https://github.com/tmux/tmux/commit/7411f21c5f9dbc64d98538ad3df8d4b25e1988ba Due to the bug above in conjunction with a [https://trac.macports.org/ticket/52223 bug in latest stable libevent] (2.0.22), tmux prints the warning below on OS X 10.12 (Sierra): {{{ [warn] kq_init: detected broken kqueue; not using.: File exists }}} Even though the warning coming from libevent due to a bug in its kqueue detection logic, tmux should not attempt to use kqueue nor poll in OS X because those implementations are broken in ways that affect tmux. Attached to this ticket is a patch for a new release of tmux (2.2_1) that incorporates the patch from upstream. -- Ticket URL: <https://trac.macports.org/ticket/52224> MacPorts <https://www.macports.org/> Ports system for macOS