[prev in list] [next in list] [prev in thread] [next in thread] 

List:       bash-bug
Subject:    Re: wait with trap SIGCHLD: different behaviour in 3.2 and 4.0
From:       Chet Ramey <chet.ramey () case ! edu>
Date:       2009-09-28 13:49:34
Message-ID: 090928134934.AA97858.SM () caleb ! INS ! CWRU ! Edu
[Download RAW message or body]

> > 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/



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic