3fb13f
diff -pruN bash-4.1/jobs.c bash-4.1.patched/jobs.c
3fb13f
--- bash-4.1/jobs.c	2009-11-30 03:42:05.000000000 +0530
3fb13f
+++ bash-4.1.patched/jobs.c	2012-03-06 16:44:15.706595703 +0530
3fb13f
@@ -3037,6 +3037,7 @@ waitchld (wpid, block)
3fb13f
   pid_t pid;
3fb13f
 
3fb13f
   int call_set_current, last_stopped_job, job, children_exited, waitpid_flags;
3fb13f
+  int called_from_sighand = sigchld;
3fb13f
   static int wcontinued = WCONTINUED;	/* run-time fix for glibc problem */
3fb13f
 
3fb13f
   call_set_current = children_exited = 0;