Why would a kill -2 not work?

Gary Gatten Ggatten at waddell.com
Mon May 18 21:55:29 UTC 2009

What he said.  It's better to just stick with -9; it almost always


-----Original Message-----
From: owner-freebsd-questions at freebsd.org
[mailto:owner-freebsd-questions at freebsd.org] On Behalf Of Chuck Swiger
Sent: Monday, May 18, 2009 4:49 PM
To: Peter Steele
Cc: #freebsd-questions
Subject: Re: Why would a kill -2 not work?


On May 18, 2009, at 2:45 PM, Peter Steele wrote:
> This is basically what we doing. When the handler is triggered we  
> set a global variable to indicate the system is shutting down. I  
> also signal a condition to wake up a sleeping thread. The lack of  
> log messages indicate that this handler never gets called and the  
> system carries on as if the kill -2 never happened.

You're not trying to send a signal within the signal handler itself,  
are you?  That won't work-- signal delivery is blocked when you're  
already running in a signal handler.  Also, note that trying to mix  
signals with a multithreaded process is complicated....


freebsd-questions at freebsd.org mailing list
To unsubscribe, send any mail to
"freebsd-questions-unsubscribe at freebsd.org"

<font size="1">
<div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 1.0pt 0in'>
"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."

More information about the freebsd-questions mailing list