From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.dk
Subject: Re: Possible bug in zsh
Date: Sun, 04 Jan 2004 17:43:16 +0000 [thread overview]
Message-ID: <20040104174318.178398545@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: "Vincent Stemen"'s message of "Sat, 03 Jan 2004 17:09:31 CST." <20040103230931.GA63684@quark.localdomain>
Vincent Stemen wrote:
> -T trapsasync
>
> When waiting for a child, execute traps immediately. If this option
> is not set, traps are executed after the child exits, as specified in
> IEEE Std 1003.2 (``POSIX.2'') This nonstandard option is useful for
> putting guarding shells around children that block signals. The
> surrounding shell may kill the child or it may just return control to
> the tty and leave the child alone, like this:
>
> sh -T -c "trap 'exit 1' 2 ; some-blocking-program"
Does it mean that when the shell gets SIGINT while waiting for a
programme it normally doesn't execute the trap until the wait has finally
returned succesfully, but with this option it does? Isn't there a race
in any case?
--
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk
parent reply other threads:[~2004-01-04 17:37 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <20040103230931.GA63684@quark.localdomain>]
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=20040104174318.178398545@pwstephenson.fsnet.co.uk \
--to=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.dk \
/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).