[plug] Re: Leon's Sig Code
Steve Baker
sbaker at icg.net.au
Fri Mar 2 08:47:14 WST 2001
----- Original Message -----
From: "Brian Tombleson" <brian at ParadigmIT.com.au>
To: <plug at plug.linux.org.au>
Sent: Friday, March 02, 2001 6:46 AM
Subject: Re: Leon's Sig Code - Was: [plug] BIND and WU-FTPD
> // send the signal of 'SIGSTOP' to the process with the reason
> // 'SIGBUS' (hardware failure or incorrect address)
> kill(pid,random()&1?SIGSTOP:SIGBUS);
>
Not quite. Get a random number, if it's odd send SIGSTOP signal, otherwise
send the SIGBUS signal.
bakes
--
Steve Baker
Open your mind, then check out www.nexusmagazine.com
More information about the plug
mailing list