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

2009-10-15 Thread Chet Ramey
> > 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

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

2009-09-28 Thread Alex Efros
Hi! On Sun, Sep 27, 2009 at 11:06:43PM -0400, Chet Ramey wrote: > > Description: > > Looks like 'wait' command in bash-4 is broken: if used together > > with 'trap myhandler SIGCHLD' the 'wait' (without params) exit > > just after receiving first child exit, instead of wait

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

2009-09-28 Thread Chet Ramey
> > 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 "interru

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

2009-09-27 Thread Chet Ramey
power...@powerman.name wrote: > Bash Version: 4.0 > Patch Level: 28 > Release Status: release > > Description: > Looks like 'wait' command in bash-4 is broken: if used together > with 'trap myhandler SIGCHLD' the 'wait' (without params) exit > just after receiving first ch