From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28318 invoked by alias); 14 Sep 2006 03:58:08 -0000 Received: (qmail 28309 invoked by uid 22791); 14 Sep 2006 03:58:07 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Sep 2006 03:58:05 +0000 Received: from kahikatea.snap.net.nz (p202-124-120-13.snap.net.nz [202.124.120.13]) by viper.snap.net.nz (Postfix) with ESMTP id D76057B81DD for ; Thu, 14 Sep 2006 15:58:00 +1200 (NZST) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id CFD2EBE3A5; Thu, 14 Sep 2006 15:55:37 +1200 (NZST) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17672.53943.265838.195451@kahikatea.snap.net.nz> Date: Thu, 14 Sep 2006 03:58:00 -0000 To: gdb-patches@sources.redhat.com Subject: [PATCH] linux-nat.c X-Mailer: VM 7.19 under Emacs 22.0.50.13 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2006-09/txt/msg00075.txt.bz2 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 * 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