On 04/08/2006, at 9:21 AM, Carlo Sogono wrote:

Sam Lawrance wrote:
OK, how about using a separate thread to sigwait() on the desired signal, and dispatch any work from the thread after the signal is noticed.

It seems that the SIGTERM is _only_ noticed by the signal handler and all threads seem to ignore it. I have select() running on pretty much all threads so using pipes might be a good option. True it isn't the best but I think that would do for now.

I noticed a snippet somewhere which mentioned that you still have to set a signal handler when using sigwait() (even though it is never called). Is that what you tried?

_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders

Reply via email to