[JOBS] Fix wait regression where it does not wait for all jobs
commit207e4c2a322fe0f928944f7004b5b17ae2dceaaa
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 27 May 2010 11:37:14 +0000 (27 21:37 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 27 May 2010 11:37:14 +0000 (27 21:37 +1000)
tree51b52f1f6065ac676e74931ee7eeae222c6d9d02
parentf8231aea37e921492fc7fbd972385ab5b90e8627
[JOBS] Fix wait regression where it does not wait for all jobs

The sigsuspend patch broke wait by making it return after just
one job has completed.  This is because we rely on pendingsigs
to signal work and never clear it until waitcmd finishes.

This patch adds a separate gotsigchld for this purpose so we
can clear it before we start waiting.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
ChangeLog
src/jobs.c
src/trap.c
src/trap.h