develooper Front page | perl.qpsmtpd | Postings from June 2005

Re: qpsmtpd processes in an infinite loop

Thread Previous
From:
Justin Erenkrantz
Date:
June 15, 2005 12:14
Subject:
Re: qpsmtpd processes in an infinite loop
Message ID:
4A56E0A678C6E9D1EFA84D95@st-augustin.ics.uci.edu
--On Wednesday, June 15, 2005 12:08 PM -0700 Justin Mason <jm@jmason.org> 
wrote:

> try setting signal handling to "unsafe" (ie. allow sigs to interrupt
> ongoing OP calls) --
>
>     export PERL_SIGNALS=unsafe
>
> that may help getting a decent stack trace.

Okay, thanks, I'll try that.

> (ps: anyone got a code snippet for the SIGUSR2-gives-stack-trace trick?
> that sounds very useful.)

+    $SIG{USR2} = sub {
+       Carp::confess("caught SIGUSR2!");
+    };

use Carp above that, blah, blah, blah.

Seems to work when the process isn't wonky.  -- justin

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About