This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] linux-nat.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]