Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Mon, 17 Dec 2001 07:35:27 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Mon, 17 Dec 2001 07:35:17 -0500 Received: from [195.157.147.30] ([195.157.147.30]:60937 "HELO pookie.dev.sportingbet.com") by vger.kernel.org with SMTP id ; Mon, 17 Dec 2001 07:35:08 -0500 Date: Mon, 17 Dec 2001 12:30:45 +0000 From: Sean Hunter To: Matthew Kirkwood Cc: vda , Chris Wright , Linus Torvalds , Andries.Brouwer@cwi.nl, linux-kernel@vger.kernel.org Subject: Re: [PATCH] kill(-1,sig) Message-ID: <20011217123045.D14112@dev.sportingbet.com> Mail-Followup-To: Sean Hunter , Matthew Kirkwood , vda , Chris Wright , Linus Torvalds , Andries.Brouwer@cwi.nl, linux-kernel@vger.kernel.org In-Reply-To: <20011217115344.C14112@dev.sportingbet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from matthew@hairy.beasts.org on Mon, Dec 17, 2001 at 12:06:30PM +0000 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Doh! Sean On Mon, Dec 17, 2001 at 12:06:30PM +0000, Matthew Kirkwood wrote: > 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/ > - 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/