From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4172 invoked by alias); 11 Mar 2015 18:45:14 -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: 34699 Received: (qmail 12225 invoked from network); 11 Mar 2015 18:44:59 -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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1426099099; bh=KI2gtxLI2xC8MTBlbTuXiKZFOpLrvkFS2F8jJafrCW8=; h=Date:From:Reply-To:To:In-Reply-To:References:Subject:From:Subject; b=rfecBmFgz7YG18AQWu+nRr0Ewyo/1EuqXP/MqMMYL23aOxVeSazM1okSc68ASi3YkxpR3gE4JHQS+CGNcvWvDl4ah495mWvgzXFTmO2a7MGXIQe3WI5c12KusUpoi5XYk7VvjFuvYHy/TVdm/WeOTnW2tT6f+C1e6VeD2xBR5u2BArKGOvu23KZqjQG1v6G1dgjtjnRG1vqp/Wt0FFUfnVJbg1ZemoAIdQvTCJokUMAALYzyTYuUK3zJ23COgHpk04DQje9ku1WvAAQ+nmpSjRJC06i0m9zLEPjQTI1sn20i0HkWMhfLRnHA/T1d72l658e8B9EAQ2NRKXpdIbLRBA== X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 508753.2435.bm@omp1007.mail.bf1.yahoo.com X-YMail-OSG: ANfglvoVM1mUFmYoes8PJfo1KCCLI03xIy_zwHb61vewp7FnHSpnwZf7PeBygvF nQwIUnvPPQaCWXQl42cek7JYqRl_LQgS3f9hjBDq2wlVZBk_I8bNKJ11VmZ6efMm_3RRltnMOk7f j6KMKp_By_tGWsxkVWtdzFfcHpMN4yOWNw1WQYyQPMiWSD5GzE_iXlAWsmOMSpAuXrkFYegA3WJv G2pYvAzfI8p8Kk4qgCTZ3XMRSoTOOg3zPR3Y2hRqMRQuXQdWJSeU3izYU1mJBRfl2n682qHZZDiR GGgxHd2M1H4VwbPKDa2k6R47.NKf_mGSkXCj4Xu63dAy3BU6XySpy4Qhq.qJzosX6AhVLszhbV92 Z5ZIHje_SOCZ7zPuEZG8IMHqVXpcfYQrusdh4S.artwAqKZ.swM4K8RugaLgakI3FNJKrChCSoV6 6J2zzNDwCPsnJDK4DiiEj8GI48l2_vulyvObvb2V2LJwE69Dk2M3IgTHuiqGhd8kQt9mpHY.uoRE v77rbGqN6cQ-- Date: Wed, 11 Mar 2015 18:38:18 +0000 (UTC) From: John Reply-To: John To: Bart Schaefer , "zsh-workers@zsh.org" Message-ID: <638115632.4022312.1426099098513.JavaMail.yahoo@mail.yahoo.com> In-Reply-To: <150310174327.ZM13990@torch.brasslantern.com> References: <150310174327.ZM13990@torch.brasslantern.com> Subject: Re: Bug: ZSH crashes upon receiving SIGINT MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > I took at look at this script. The "unmount" is coming from the > exit trap of the bash process that starts the whole thing off. > > 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. Thank you for the reply. Not too sure that I can add anything intelligent to the discussion, but I can confirm that the latest zsh from git (5.0.7.336.ge85906e) does not fix this issue.