*** ../bash-4.3-patched/jobs.c	2014-05-14 09:20:15.000000000 -0400
--- jobs.c	2014-09-09 11:50:38.000000000 -0400
***************
*** 3340,3344 ****
  	{
  	  interrupt_immediately = 0;
! 	  trap_handler (SIGCHLD);	/* set pending_traps[SIGCHLD] */
  	  wait_signal_received = SIGCHLD;
  	  /* If we're in a signal handler, let CHECK_WAIT_INTR pick it up;
--- 3346,3352 ----
  	{
  	  interrupt_immediately = 0;
! 	  /* This was trap_handler (SIGCHLD) but that can lose traps if
! 	     children_exited > 1 */
! 	  queue_sigchld_trap (children_exited);
  	  wait_signal_received = SIGCHLD;
  	  /* If we're in a signal handler, let CHECK_WAIT_INTR pick it up;
