zsh-workers
 help / color / mirror / code / Atom feed
From: Vincent Lefevre <vincent@vinc17.net>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: Dima Kogan <dima@secretsauce.net>, zsh-workers <zsh-workers@zsh.org>
Subject: Re: Possible bug in signal handling
Date: Wed, 4 Nov 2015 15:25:21 +0100	[thread overview]
Message-ID: <20151104142521.GA31943@zira.vinc17.org> (raw)
In-Reply-To: <151103204634.ZM19567@torch.brasslantern.com>

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 <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)


  reply	other threads:[~2015-11-04 14:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-02 10:10 Dima Kogan
2015-11-04  4:16 ` Bart Schaefer
2015-11-04  4:27   ` Dima Kogan
2015-11-04  4:46     ` Bart Schaefer
2015-11-04 14:25       ` Vincent Lefevre [this message]
2015-11-04 19:01         ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151104142521.GA31943@zira.vinc17.org \
    --to=vincent@vinc17.net \
    --cc=dima@secretsauce.net \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).