From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23759 invoked from network); 13 Jul 2009 02:37:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from new-brage.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.254.104) by ns1.primenet.com.au with SMTP; 13 Jul 2009 02:37:07 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 74391 invoked from network); 13 Jul 2009 02:37:00 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 13 Jul 2009 02:37:00 -0000 Received: (qmail 5808 invoked by alias); 13 Jul 2009 02:36:50 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 27145 Received: (qmail 5779 invoked from network); 13 Jul 2009 02:36:49 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 13 Jul 2009 02:36:49 -0000 Received: from vms173005pub.verizon.net (vms173005pub.verizon.net [206.46.173.5]) by bifrost.dotsrc.org (Postfix) with ESMTP id 9D74180307FA for ; Mon, 13 Jul 2009 04:36:45 +0200 (CEST) Received: from torch.brasslantern.com ([96.238.220.32]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008; 32bit)) with ESMTPA id <0KMP00M0U8KPBLS5@vms173005.mailsrvcs.net> for zsh-workers@sunsite.dk; Sun, 12 Jul 2009 21:36:30 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id n6D2aOAe014825 for ; Sun, 12 Jul 2009 19:36:24 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id n6D2aNVt014824 for zsh-workers@sunsite.dk; Sun, 12 Jul 2009 19:36:23 -0700 From: Bart Schaefer Message-id: <090712193623.ZM14823@torch.brasslantern.com> Date: Sun, 12 Jul 2009 19:36:23 -0700 In-reply-to: <20090713004348.GC7803@xvii.home> Comments: In reply to Vincent Lefevre "Re: zsh 4.3.10 terminates with SIGINT when one types Ctrl-G in emacs under Mac OS X" (Jul 13, 2:43am) References: <20090712205905.GA7803@xvii.home> <090712145001.ZM14603@torch.brasslantern.com> <20090713004348.GC7803@xvii.home> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@sunsite.dk Subject: Re: zsh 4.3.10 terminates with SIGINT when one types Ctrl-G in emacs under Mac OS X MIME-version: 1.0 Content-type: text/plain; charset=us-ascii X-Virus-Scanned: ClamAV 0.94.2/9557/Sun Jul 12 22:01:16 2009 on bifrost X-Virus-Status: Clean On Jul 13, 2:43am, Vincent Lefevre wrote: } } Why does zsh 4.3.10 behave differently? Hmm. There was a change to trap handling, but that should only matter if LOCAL_TRAPS is set. I also wanted there to have been some change related to configure detecting restartable syscalls, but I can't find anything in the ChangeLog about that. IMO 4.3.10 has got it right and the older zsh et al. do not. } I've searched on Google, and found the explanations of the various } behaviors: } } http://www.cons.org/cracauer/sigint.html } } IMHO, zsh should implement WCE, just like bash. I'm not so sure. You can emulate WCE with WUE and a trap, but there is no way to make WCE do the right thing in the case of an ill-behaved child that does not propagate the signal state through exit status.