Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261610AbUKCPac (ORCPT ); Wed, 3 Nov 2004 10:30:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261663AbUKCP1B (ORCPT ); Wed, 3 Nov 2004 10:27:01 -0500 Received: from 200.80-202-166.nextgentel.com ([80.202.166.200]:39877 "EHLO mail.inprovide.com") by vger.kernel.org with ESMTP id S261659AbUKCPZr convert rfc822-to-8bit (ORCPT ); Wed, 3 Nov 2004 10:25:47 -0500 To: linux-kernel@vger.kernel.org Subject: Re: is killing zombies possible w/o a reboot? References: <200411030751.39578.gene.heskett@verizon.net> <20041103143348.GA24596@outpost.ds9a.nl> <20041103152531.GA22610@DervishD> From: =?iso-8859-1?q?M=E5ns_Rullg=E5rd?= Date: Wed, 03 Nov 2004 16:25:21 +0100 In-Reply-To: <20041103152531.GA22610@DervishD> (DervishD's message of "Wed, 3 Nov 2004 16:25:31 +0100") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux) 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: 957 Lines: 26 DervishD writes: > 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. You can only wait() for your own children. -- M?ns Rullg?rd mru@inprovide.com - 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/