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

No, I'm not sending a signal within a signal. The signal handler is this: 

pthread_mutex_lock(&keep_running_mutex); 
KEEP_RUNNING = 0; 
pthread_cond_signal(&keep_running_cond); 
pthread_mutex_unlock(&keep_running_mutex); 

This works fine, but at some point it seems to stop working. The app just 
continues to run as if it never received the -2 signal. We have to use a kill 
-9 to kill it, which we want to avoid because this prevents our shutdown code 
from executing. 

_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to