From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21971 invoked by alias); 4 Nov 2015 14:31:02 -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: 37061 Received: (qmail 9662 invoked from network); 4 Nov 2015 14:31:00 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 Date: Wed, 4 Nov 2015 15:25:21 +0100 From: Vincent Lefevre To: Bart Schaefer Cc: Dima Kogan , zsh-workers Subject: Re: Possible bug in signal handling Message-ID: <20151104142521.GA31943@zira.vinc17.org> Mail-Followup-To: Bart Schaefer , Dima Kogan , zsh-workers References: <87wpu0g19r.fsf@secretsauce.net> <151103201631.ZM19473@torch.brasslantern.com> <87vb9ifkyz.fsf@secretsauce.net> <151103204634.ZM19567@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <151103204634.ZM19567@torch.brasslantern.com> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.24-6522-vl-r83103 (2015-10-20) On 2015-11-03 20:46:34 -0800, Bart Schaefer wrote: > That's unclear. The default response to SIGINT is supposed to be that > the process exits, not that it only exits if it has children that have > not yet exited. I suppose you meant "if it does not have children...". You're thinking about IUE (implemented by zsh, unless this has changed in the last few years), while WCE (implemented by bash) is generally regarded to be better: http://www.cons.org/cracauer/sigint.html Dima's example may be more complex. > If someone wants to pore over the POSIX spec and point out where it > says that rule is countermanded for the shell, go for it. I don't think that POSIX covers that, otherwise one wouldn't have the above differences between POSIX shells. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)