On 11/28/05, Mathew Mills <[EMAIL PROTECTED]> wrote:
> On the topic of thread-safety of signals:  You can block signals that are
> watched by libevent and explicitly dispatch these signals with sigwait() 
> instead
> of allowing the signal handler to be called.  Alternatively, the signal 
> handler
> could be extremely simple, like writing some data to a socket with
> sendmsg, without calling malloc or other thread-unsafe functions.  The other
> end of the socket could be watched by libevent...

You are describing the self-pipe trick:

http://cr.yp.to/docs/selfpipe.html

It would be nice if libevent had an option to do this.

--
David Phillips <[EMAIL PROTECTED]>
http://david.acz.org/

_______________________________________________
Libevent-users mailing list
[email protected]
http://monkey.org/mailman/listinfo/libevent-users

Reply via email to