Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262002AbUKCXsN (ORCPT ); Wed, 3 Nov 2004 18:48:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261995AbUKCXop (ORCPT ); Wed, 3 Nov 2004 18:44:45 -0500 Received: from brown.brainfood.com ([146.82.138.61]:25472 "EHLO gradall.private.brainfood.com") by vger.kernel.org with ESMTP id S261997AbUKCXTL convert rfc822-to-8bit (ORCPT ); Wed, 3 Nov 2004 18:19:11 -0500 Date: Wed, 3 Nov 2004 17:18:57 -0600 (CST) From: Adam Heath X-X-Sender: adam@gradall.private.brainfood.com To: DervishD cc: =?iso-8859-1?Q?M=E5ns_Rullg=E5rd?= , linux-kernel@vger.kernel.org Subject: Re: is killing zombies possible w/o a reboot? In-Reply-To: <20041103152531.GA22610@DervishD> Message-ID: References: <200411030751.39578.gene.heskett@verizon.net> <20041103143348.GA24596@outpost.ds9a.nl> <20041103152531.GA22610@DervishD> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=iso-8859-1 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 960 Lines: 23 On Wed, 3 Nov 2004, DervishD wrote: > Hi all :) > > * M?ns Rullg?rd dixit: > > >> I'd tried to kill the zombie earlier but couldn't. > > >> Isn't there some way to clean up a &^$#^#@)_ zombie? > > > Kill the parent, is the only (portable) way. > > Perhaps not as portable, but another possible, though slightly > > complicated, way is to ptrace the parent and force it to wait(). > > Or write a little program that just 'wait()'s for the specified > PID's. That is perfectly portable IMHO. But I must admit that the > preferred way should be killing the parent. 'init' will reap the > children after that. ptrace the parent, cause it to wait() for it's children, then change IP, etc. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/