Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (2) Re: FreeBSD compatability feature request
- X-seq: zsh-workers 19815
- From: Peter Stephenson <pws@xxxxxxx>
- To: Vincent Stemen <zsh@xxxxxxxxxxx>, Zsh hackers list <zsh-workers@xxxxxxxxxx>
- Subject: Re: PATCH: (2) Re: FreeBSD compatability feature request
- Date: Thu, 22 Apr 2004 11:17:19 +0100
- In-reply-to: "Peter Stephenson"'s message of "Thu, 22 Apr 2004 10:59:57 BST." <17122.1082627997@xxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
Peter Stephenson wrote:
> However, that now gives us three different modes: the original zsh one,
> POSIX where all traps are deferred, and this mode where signals are
> delivered straight through. So one option isn't enough. Presumably
> TRAPS_ASYNC should be off for the standard zsh behaviour, on for the new
> behaviour, and we need another option for POSIX which will be overridden
> if TRAPS_ASYNC is set. Yuk.
Actually (sorry to generate all the traffic) it's possible I was getting
confused...
Zsh will usually block other signals while waiting for SIGCHLD. This
may be all that POSIX requires. What it doesn't do (and why I was able
to get asynchronous traps working) is ensure that traps don't run if it
stops waiting, for example because a different process exited. I
originally tested this by running a background functions which exited,
generating a SIGCHLD, which caused all queued signals to be delivered.
Hence it's possible that the queueing traps thing is a red herring, that
zsh is sufficiently POSIX compliant by default, and all we need is the
ability to receive signals other than SIGCHLD while waiting for a child.
(It's a bit late to back out now.)
If anybody actually knows anything about all this, their views would be
especially welcome.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK Tel: +44 (0)1223 692070
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************
Messages sorted by:
Reverse Date,
Date,
Thread,
Author