http://issues.apache.org/SpamAssassin/show_bug.cgi?id=4631
------- Additional Comments From [EMAIL PROTECTED] 2005-11-28 21:51 -------
'evals often don't work as exception handlers when you've installed your own
__DIE__ hooks'
well, they do work -- it's just that the fake-die messages used (kludgily) as
exceptions in perl are "leaked". btw, I knew there was a good way to fix this;
here it is, as described in perldoc -f eval:
When using the eval{} form as an exception trap in libraries, you may wish not
to trigger any __DIE__ hooks that user code may have installed. You can use the
local $SIG{__DIE__} construct for this purpose, as shown in this example:
# a very private exception trap for divide-by-zero
eval { local $SIG{'__DIE__'}; $answer = $a / $b; };
warn $@ if $@;
see http://www.perl.com/doc/manual/html/pod/perlfunc/eval.html .
r349500 is a checkin that adds those, as well, in trunk, in addition to patch
3247.
ps: we really need a way to consolidate those timeout blocks; way too much code
duplication there...
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.