From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6623 invoked by alias); 11 Mar 2015 19:55:46 -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: 34700 Received: (qmail 9909 invoked from network); 11 Mar 2015 19:55:33 -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.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Originating-IP: [86.6.153.127] X-Spam: 0 X-Authority: v=2.1 cv=RdIeCjdv c=1 sm=1 tr=0 a=39NrsSuza2clQiZR/7fYWQ==:117 a=39NrsSuza2clQiZR/7fYWQ==:17 a=kj9zAlcOel0A:10 a=NLZqzBF-AAAA:8 a=hD80L64hAAAA:8 a=q2GGsy2AAAAA:8 a=HYshxDoSAAAA:8 a=gZNRIvMR8BovCS9QiwYA:9 a=CjuIK1q_8ugA:10 a=68VLmCrDWVAA:10 Date: Wed, 11 Mar 2015 19:55:25 +0000 From: Peter Stephenson To: Peter Stephenson , "zsh-workers@zsh.org" Cc: John Subject: Re: Bug: ZSH crashes upon receiving SIGINT Message-ID: <20150311195525.1364704f@ntlworld.com> In-Reply-To: <20150311094447.765e7489@pwslap01u.europe.root.pri> References: <20150310104653.181bd618@ntlworld.com> <1396169464.3080953.1426025172139.JavaMail.yahoo@mail.yahoo.com> <150310174327.ZM13990@torch.brasslantern.com> <20150311094447.765e7489@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Wed, 11 Mar 2015 09:44:47 +0000 Peter Stephenson wrote: > On Tue, 10 Mar 2015 17:43:27 -0700 > Bart Schaefer wrote: > > So I *think* what's happening is: > > > > Bash starts "unshare" which becomes the TTY process group leader. > > > > Unshare starts zsh which does not make itself the process group leader > > (see previous -workers list discussions of zsh executing inside PID > > namespaces, of which "unshare" creates one). > > > > The ^C therefore is delivered to "unshare" which exits, ending the > > bash script and executing the trap, which removes the tty device. > > > > This causes zsh to get I/O error and exit. > > > > It's *possible* that this is already "fixed" in development versions > > of zsh, though most of the PID namespace changes had to do with avoiding > > being process group leader rather than forcibily becoming so. It's also > > not clear that this is actually zsh's problem; it seems to me that the > > arch-chroot script and/or "unshare" are not doing things they should be. > > The PID namespace issue I remember is from the docker thread, > zsh-workers/34503. I'm wrong, it's the discussion around 33992: http://www.zsh.org/mla/workers/2014/msg01779.html This does sound much more similar. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/