Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 17 Dec 2001 07:08:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 17 Dec 2001 07:08:20 -0500 Received: from sphinx.mythic-beasts.com ([195.82.107.246]:4113 "EHLO sphinx.mythic-beasts.com") by vger.kernel.org with ESMTP id ; Mon, 17 Dec 2001 07:07:59 -0500 Date: Mon, 17 Dec 2001 12:06:30 +0000 (GMT) From: Matthew Kirkwood X-X-Sender: To: Sean Hunter cc: vda , Chris Wright , Linus Torvalds , , Subject: Re: [PATCH] kill(-1,sig) In-Reply-To: <20011217115344.C14112@dev.sportingbet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 17 Dec 2001, Sean Hunter wrote: > > Hmm. Looking at killall5 source I see > > > > kill(-1, STOP); > > for(each proc with p.sid!=my_sid) kill(proc, sig); > > kill(-1, CONT); > > > > I guess STOP will stop killall5 too? Not good indeed. > Couldn't it just do: [..] > ... in other words, block signals, do the killing, then unblock? SIGSTOP and SIGKILL can't be blocked. Matthew. - 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/