macos sierra: [warn]: kq_init: detected broken kqueue; not using.: File exists #475

Closed
oschrenk opened this Issue Jul 9, 2016 · 5 comments

Projects

None yet

5 participants

@oschrenk
oschrenk commented Jul 9, 2016

When listing sessions without any session running the command fails with one warning (I'm using fish that is why there is echo $status instead of echo $?). Not sure if non-zero exit was actually standard behaviour if there was no attached session

tmux list-sessions
[warn] kq_init: detected broken kqueue; not using.: File exists
0: 1 windows (created Sat Jul  9 11:55:19 2016) [204x41] (attached)
echo $status
1

When listing sessions with at least one sessions running, the command exits with 0, still with warning

tmux list-sessions
[warn] kq_init: detected broken kqueue; not using.: File exists
0: 1 windows (created Sat Jul  9 11:55:19 2016) [204x41] (attached)

I found an issue for Chromium and libevent that might shed some further light onto this.

This behaviour breaks tmuxp to load sessions.

@nicm
Contributor
nicm commented Jul 9, 2016

Using my amazing mind reading powers I can conclude that you are using tmux 2.2.

kqueue is broken on OS X, but we accidentally stopped turning it off in 2.2. Use tmux from Git instead, or export EVENT_NOKQUEUE=1 before starting any tmux.

@oschrenk
oschrenk commented Jul 9, 2016 edited

You're a magician! (and sorry for not posting the tmux version info)

export EVENT_NOKQUEUE=1

works!

@oschrenk oschrenk referenced this issue in tony/tmuxp Jul 9, 2016
Closed

macos sierra, can't load sessions #173

@jianbin-wei

I noticed this issue yesterday and didn't have time to debug. I also saw the Chromium issue and was trying to file an issue for tmux and saw this one. Save me time. ;-)

@nicm nicm closed this Jul 15, 2016
@mvanbaak

For those that come here because they have the same problem:

brew uninstall --force tmux
brew install --HEAD tmux

@neeklamy neeklamy referenced this issue in brave/browser-laptop Aug 18, 2016
Closed

macOS Sierra `kq_init` warnings #3237

@keith
keith commented Sep 21, 2016

This has been fixed in libevent as well so these warnings should be totally gone if you upgrade libevent/libevent#376

@zackhsi zackhsi added a commit to zackhsi/dotfiles that referenced this issue Sep 21, 2016
@zackhsi zackhsi Fix tmux after macOS Sierra cecb3c1
@jehoffmann jehoffmann added a commit to jehoffmann/dotfiles that referenced this issue Sep 21, 2016
@jehoffmann jehoffmann [tmux] add workaround for tmux 2.2
Add kqueue workaround for file not found error.

tmux/tmux#475
9beb862
@mislav mislav added a commit to mislav/dotfiles that referenced this issue Oct 31, 2016
@mislav mislav Fix tmux warning about kqueue e47dcb1
@ccordoba12 ccordoba12 referenced this issue in spyder-ide/spyder Nov 23, 2016
Closed

[warn] kq_init: detected broken kqueue #3730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment