[PATCH] linux-nat.c

Nick Roberts nickrob@snap.net.nz
Thu Sep 14 03:58:00 GMT 2006


On nickrob-async-20060513-branch I get a zombie process each time I start the
inferior.  It doesn't happen for me on mainline but the patch below seems to
belong there anyway.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


2006-09-14  Nick Roberts  <nickrob@snap.net.nz>

	* linux-nat.c (linux_test_for_tracefork): Don't leave zombie process.

*** linux-nat.c	24 Jul 2006 09:21:01 +1200	1.49
--- linux-nat.c	14 Sep 2006 15:48:58 +1200	
***************
*** 276,281 ****
--- 276,282 ----
  	  ret = ptrace (PTRACE_KILL, second_pid, 0, 0);
  	  if (ret != 0)
  	    warning (_("linux_test_for_tracefork: failed to kill second child"));
+ 	  my_waitpid (second_pid, &status, 0);
  	}
      }
    else



More information about the Gdb-patches mailing list