bug-bash
[Top][All Lists]
Advanced

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

Re: wait with trap SIGCHLD: different behaviour in 3.2 and 4.0


From: Chet Ramey
Subject: Re: wait with trap SIGCHLD: different behaviour in 3.2 and 4.0
Date: Mon, 28 Sep 2009 09:49:34 -0400

> > This was reported as a bug against bash-3.2.
> 
> Cool. Is there any hint/doc/faq/how-to implement old behaviour, i.e. wait
> until all children of current bash process will exit?

I imagine a loop on wait until it returns because there are no unwaited-for
children.  You can detect the "interrupted" exit status and behave
accordingly.

I'll probably make this posix-mode-specific behavior or add an option for
it in the next version.

> P.S. I've not seen this information in 'help wait' or 'man bash' - is this
> current 'correct' behaviour is documented?

No.  I'm not able to put everything from the Posix spec into a man page.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

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