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.
Carlo _______________________________________________ coders mailing list [email protected] http://lists.slug.org.au/listinfo/coders
