On Thu, Aug 03, 2006 at 05:44:45 +1000, Sam Lawrance wrote:
> Could you use something like pthread_cond_timedwait, and wake the
> thread up from the signal handler?
That was my first thought too, then I read this in the man page:
ASYNC-SIGNAL SAFETY
The condition functions are not async-signal safe, and
should not be called from a signal handler. In particular,
calling pthread_cond_signal or pthread_cond_broadcast from a
signal handler may deadlock the calling thread.
So no, it's unlikely to work.
Cheers,
John
--
Same diagnosis on both problems: Inverse Square Law. Your lusers are
in too close a proximity to your systems. Life would be comparitively
peaceful if faroff script-kiddies were your main problem.
-- Anthony de Boer
_______________________________________________
coders mailing list
[email protected]
http://lists.slug.org.au/listinfo/coders