bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bash-bug-002] bash-2.05b potential bug with trap


From: Chet Ramey
Subject: Re: [bash-bug-002] bash-2.05b potential bug with trap
Date: Mon, 18 Aug 2003 13:41:37 -0400

I have not looked at this more closely, but:

> I did not
> find any standard text that says it should hold the signal, and wait for
> child process exits. So I think it is a bug.

This is from the Signals and Error Handling section of the SUS:

When a signal for which a trap has been set is received while the
shell is waiting for the completion of a utility executing a
foreground command, the trap associated with that signal shall not be
executed until after the foreground command has completed.  When the
shell is waiting, by means of the wait utility, for asynchronous
commands to complete, the reception of a signal for which a trap has
been set shall cause the wait utility to return immediately with an
exit status >128, immediately after which the trap associated with
that signal shall be taken. 

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live...Laugh...Love
Chet Ramey, ITS, CWRU    chet@po.CWRU.Edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]