Me> A 9 signal prevents the receiving process from doing any kind of
Me> cleanup, since it may not be intercepted. As such, it should almost
Me> NEVER be the first signal you send a process you want to terminate.
Me> Instead, sent SIGTERM (15), which as it happens is the default signal
Me> the kill command sends. This lets the receiving process catch it, tidy
Me> up and _then_ exit.

On Tue, Mar 14, 2000 at 07:21:22AM -0500, rpjday wrote:
| i've always wondered about this, since i recall seeing some old
| SCO UNIX scripts that explicitly caught signal 9 in the "trap"
| statement at the top of the script.  did this actually do anything?

Nope. The authors of the scripts were probably just idiots, unless SCO
was Really Really Really Weird. The whole point of 9 is to be
uncatchable, and thus always usable in times of desperation.
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

Ya see, nothwithstanding the exchange of net.custard-pies, I enjoy discussing
stuff with Mike, because I know that the positions he adopts are ones he's
arrived at after careful thought and honest reflection. - Jeremy Henderson


-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to