From 207e4c2a322fe0f928944f7004b5b17ae2dceaaa Mon Sep 17 00:00:00 2001 From: Herbert Xu Date: Thu, 27 May 2010 21:37:14 +1000 Subject: [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 --- src/trap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/trap.h') diff --git a/src/trap.h b/src/trap.h index 50fc3ed..bdd7944 100644 --- a/src/trap.h +++ b/src/trap.h @@ -39,6 +39,7 @@ extern int trapcnt; extern char sigmode[]; extern volatile sig_atomic_t pendingsigs; +extern int gotsigchld; int trapcmd(int, char **); void clear_traps(void); -- cgit 1.4.1