Whenever we redirect stderr or stdout to /dev/null tmux will hang if there is already tmux running and tmux write anything, Example: `tmux has-session -t "SessioName" 2>/dev/null` will hang. Its bug in linux's libevent, known for over a year and affecting tmux since 1.4. The workaround or maybe just a proper fix is to set EVENT_NOEPOLL=1 env variable, Note that it will somehow break libevent 1.4 (no idea in what way, I dont have such libevent). Anyway, debian guys did a patchy to set this envvar from within tmux and fix? some other issues: http://patch-tracker.debian.org/patch/series/view/tmux/1.6-2/platform-quirks.diff I tested it myself via localpatch, works as expected Reproducible: Always
Our tmux doesn't use the old libevent. Also, Debian has a tmux 1.7 SVN snapshot.
(In reply to comment #1) > Our tmux doesn't use the old libevent. Also, Debian has a tmux 1.7 SVN > snapshot. Yes, I know, thats who we *can* use the woraround the NOPOLL one, with libevent 1.4 we can't.
I'm trying to reproduce this but I can't get tmux to crash, can you be a bit more specific on how this is happening? Can you reproduce it with the latest version of tmux?
Cannot reproduce it anyumore.