signal handling and posix threads

Nick Mathewson nickm at freehaven.net
Fri Feb 23 05:35:32 UTC 2007


On Tue, Feb 20, 2007 at 04:26:44PM -0500, Nick Mathewson wrote:
> On Mon, Feb 19, 2007 at 11:01:54PM -0800, coderman wrote:
   [...]
> > has this been discussed before in the context of the Tor event loop
> > when using pthread?  is anyone more familiar with libevent aware of
> > the usual idioms for handling signals within worker pthreads?  (it
> > appears at first glance that most signal mgmt in libevent is at a
> > process level)

On the libevent list, there's a thread on this, with a proposed
libevent patch from Scott Lamb.

  The thread is here:
    http://www.archivesat.com/libevent/thread2716014.htm
  The patch is here:
    http://archivesat.com/attachments/docs/30/3A.patch

If you're running svn Tor (especially on BSD or OSX), and you've been
seeing SIGPIPE errors or other weird signal messages, it would be cool
to know whether this patch to libevent helps anything for you.
Conversely, it would also be good to know whether this patch breaks
stuff horribly for you no matter what you're running.

peace,
-- 
Nick Mathewson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 652 bytes
Desc: not available
URL: <http://lists.torproject.org/pipermail/tor-dev/attachments/20070223/a57e9921/attachment.pgp>


More information about the tor-dev mailing list