pending_execs = pending_execs - 1; if (0 == pending_execs)
if (--pending_execs == 0)
startup_inferior (int ntraps){  int pending_execs = ntraps;  int terminal_initted;  /* The process was started by the fork that created it,     but it will have stopped one instruction after execing the shell.     Here we must get it up to actual execution of the real program.  */  clear_proceed_status ();  init_wait_for_inferior ();  terminal_initted = 0;  if (STARTUP_WITH_SHELL)    inferior_ignoring_startup_exec_events = ntraps;  else    inferior_ignoring_startup_exec_events = 0;  inferior_ignoring_leading_exec_events =    target_reported_exec_events_per_exec_call () - 1;  while (1)    {      /* Make wait_for_inferior be quiet */      stop_soon = STOP_QUIETLY;      wait_for_inferior ();      if (stop_signal != TARGET_SIGNAL_TRAP)	{	  /* Let shell child handle its own signals in its own way */	  /* FIXME, what if child has exit()ed?  Must exit loop somehow */	  resume (0, stop_signal);	}      else	{	  /* We handle SIGTRAP, however; it means child did an exec.  */	  if (!terminal_initted)	    {	      /* Now that the child has exec'd we know it has already set its	         process group.  On POSIX systems, tcsetpgrp will fail with	         EPERM if we try it before the child's setpgid.  */	      /* Set up the "saved terminal modes" of the inferior	         based on what modes we are starting it with.  */	      target_terminal_init ();	      /* Install inferior's terminal modes.  */	      target_terminal_inferior ();	      terminal_initted = 1;	    }	  pending_execs = pending_execs - 1;	  if (0 == pending_execs)	    break;	  resume (0, TARGET_SIGNAL_0);	/* Just make it go on */	}    }  stop_soon = NO_STOP_QUIETLY;}