From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16714 invoked by alias); 26 Mar 2012 16:24:51 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 30380 Received: (qmail 14656 invoked from network); 26 Mar 2012 16:24:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.220.171 as permitted sender) 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== MIME-Version: 1.0 In-Reply-To: <20120326161510.GA2115@pug.qqx.org> References: <1332584297-26848-1-git-send-email-mikachu@gmail.com> <20120326161510.GA2115@pug.qqx.org> Date: Mon, 26 Mar 2012 18:18:16 +0200 Message-ID: Subject: PATCH 1/2: _tmux: redirect error output when no server is running From: Mikael Magnusson To: zsh workers Cc: aaron@schrab.com Content-Type: text/plain; charset=UTF-8 ---------- Forwarded message ---------- From: Aaron Schrab Date: 26 March 2012 18:15 Subject: Re: PATCH 1/2: _tmux: redirect error output when no server is running To: Mikael Magnusson At 11:18 +0100 24 Mar 2012, Mikael Magnusson 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