Re: [PATCH] kill(-1,sig)

Miquel van Smoorenburg (miquels@cistron.nl)
Mon, 17 Dec 2001 12:16:40 +0000 (UTC)


In article <20011217115344.C14112@dev.sportingbet.com>,
Sean Hunter <sean@dev.sportingbet.com> wrote:
>On Mon, Dec 17, 2001 at 12:41:21PM -0200, vda wrote:
>> Hmm. Looking at killall5 source I see
>>
>> kill(-1, STOP);
>> I guess STOP will stop killall5 too? Not good indeed.
>>
>Couldn't it just do:
>
>sigprocmask (SIG_BLOCK, &new, &savemask);
>... in other words, block signals, do the killing, then unblock?

You can't block SIGSTOP and SIGKILL

Mike.

-- 
Deadlock, n.:
        Deceased rastaman.

- 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/