Package: tmux Version: 1.4-8 Severity: important
I found that redirecting stdout or stderr in any way can cause tmux to hang. Per the developer, this is some bug in epoll. Examples to reproduce; tmux info > /dev/null tmux has-session -t whatever 2> /dev/null It's the second example above that I was really having a problem with. I was trying to write a script where I could get the exit code of has-session output and redirect stderr to null, but it hangs forever. Note that I've found this behavior to be somewhat intermittent for reasons that I don't understand. Keep playing with it. Note that you will need to send SIGQUIT with ctrl+\ to kill it. Here's what the dev said on the mailing list; Nicholas Marriott wrote: > This is a bug in epoll on Linux, you have several choices: > > - Build tmux against libevent 2 and set EVENT_NOEPOLL=1 in the > environment before starting it. (libevent 1.4 has a another bug which > is worse, so only do this if you use libevent 2.) > > - Avoid redirecting to /dev/null. IIRC you can workaround it with for > example tmux info|cat>/dev/null. > See tmux bug 3199205; http://sourceforge.net/tracker/?func=detail&aid=3199205&group_id=200378&atid=973262 http://sourceforge.net/tracker/index.php?func=detail&aid=3199205&group_id=200378&atid=973262 -- System Information: Debian Release: wheezy/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.39-2-amd64 (SMP w/6 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages tmux depends on: ii libc6 2.13-7 Embedded GNU C Library: Shared lib ii libevent-1.4-2 1.4.13-stable-1 An asynchronous event notification ii libncurses5 5.9-1 shared libraries for terminal hand tmux recommends no packages. tmux suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org