Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH 1/2: _tmux: redirect error output when no server is running
- X-seq: zsh-workers 30380
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxx>
- Subject: PATCH 1/2: _tmux: redirect error output when no server is running
- Date: Mon, 26 Mar 2012 18:18:16 +0200
- Cc: aaron@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=xIALMKZ+KBokYSiReKVFE4jvQemQWH8we6TsrXEsFUM=; b=PxA9l6RLM86uB0zW4GtTsc3UpLMmuKS3rD+XdDQmZ9ZIP2obpYQ+npnPmriweFlOIh 01ou3doiJ/K5msMWa/Q1RN5WkLUlo3U5lRaINDJghpe2tO35tjnjUuDFuf6vPcCQHUqy AebXmL1jBrJWzceBspYcZx00cq2ios/ixBNdQ7ZP46ZFCXPaL0i8NOTET7JyCnvUAZhv BPN5EIu+jBpPKP/a2BzlrwLzCsW8UVZpVGwAklN9C7cMrYlOHQsSzY/YtLtr0kIQCKag s/wRwRxdzgCD2ah60qA08IbAs4b3dKXbw8ze1CRCL96S+aUMpCO511kQuQgtrm6rN3Me Q0GQ==
- In-reply-to: <20120326161510.GA2115@pug.qqx.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1332584297-26848-1-git-send-email-mikachu@gmail.com> <20120326161510.GA2115@pug.qqx.org>
---------- 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