New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

9 participants
@oschrenk
Copy link

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

This comment has been minimized.

Copy link
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

This comment has been minimized.

Copy link
Author

oschrenk commented Jul 9, 2016

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

export EVENT_NOKQUEUE=1

works!

@jianbin-wei

This comment has been minimized.

Copy link

jianbin-wei commented Jul 9, 2016

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

This comment has been minimized.

Copy link

mvanbaak commented Jul 18, 2016

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

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

@keith

This comment has been minimized.

Copy link

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 added a commit to zackhsi/dotfiles that referenced this issue Sep 21, 2016

jehoffmann added a commit to jehoffmann/dotfiles that referenced this issue Sep 21, 2016

[tmux] add workaround for tmux 2.2
Add kqueue workaround for file not found error.

tmux/tmux#475

mislav added a commit to mislav/dotfiles that referenced this issue Oct 31, 2016

@jakirkham

This comment has been minimized.

Copy link

jakirkham commented Apr 12, 2017

FTR was this fixed in 2.3?

@prash16

This comment has been minimized.

Copy link

prash16 commented Nov 29, 2017

It doesnt fixes for me. I have a Mac, same error. Any suggestions

@Muniamur

This comment has been minimized.

Copy link

Muniamur commented Apr 12, 2018

I updated Libevent and it didn't fix the issue.

This is a onetime fix (when I open terminal during the next session the error returns obviously):

export EVENT_NOKQUEUE=1

Any more permanent solutions?

@ashwanthkumar

This comment has been minimized.

Copy link

ashwanthkumar commented Nov 3, 2018

@Muniamur Add that command to your shell's rc file. It should fix it for all the sessions.

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