* Re: Possible bug in zsh
[not found] <20040103230931.GA63684@quark.localdomain>
@ 2004-01-04 17:43 ` Peter Stephenson
0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2004-01-04 17:43 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-01-04 17:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20040103230931.GA63684@quark.localdomain>
2004-01-04 17:43 ` Possible bug in zsh Peter Stephenson
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).