Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH 1/2: _tmux: redirect error output when no server is running



---------- Forwarded message ----------
From: Aaron Schrab <aaron@xxxxxxxxxx>
Date: 26 March 2012 18:15
Subject: Re: PATCH 1/2: _tmux: redirect error output when no server is running
To: Mikael Magnusson <mikachu@xxxxxxxxx>


At 11:18 +0100 24 Mar 2012, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>
> -    buffers=( ${${(f)"$(command tmux list-buffers "${bopts[@]}")"}/:[ >$'\t']##/:} )
> +    buffers=( ${${(f)"$(command tmux 2> /dev/null list-buffers "${bopts[@]}")"}/:[ $'\t']##/:} )


Unfortunately this can cause problems.  In my experience directing
tmux's STDERR do /dev/null causes that invocation to hang on Linux
apparently due to a bug in the epoll implementation.  This can be
worked around by setting EVENT_NOEPOLL environment variable to 1
before starting the server, but if tmux is using a version of libevent
before 2.0 (which is quite common) that will occasionally cause the
tmux server to die.

There's a thread about this on the tmux-users mailing list:

http://sourceforge.net/mailarchive/message.php?msg_id=28004727



Messages sorted by: Reverse Date, Date, Thread, Author