<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body bgcolor="#ffffff">
<font face="Arial,sans-serif" size="2"><font size="2"><span type="cite">Tim
Müller-Seydlitz wrote on 5/26/2004, 8:01 AM:</span>
</font></font>
<p><font face="Arial,sans-serif" size="2"></font></p>
<blockquote type="cite"
style="border-left: thin solid blue; padding-left: 10px; margin-left: 0pt;"><font
face="Arial,sans-serif" size="2"> </font>
<p><font face="Arial,sans-serif" size="2">I am having trouble with
the exit value of the attached code snippet.<br>
I was able to trace it down to the mail appender.<br>
When the mail appender is called for a fatal error, the exit value
cannot be set.</font></p>
</blockquote>
<font face="Arial,sans-serif" size="2"><font size="2">You've posted
this already two days ago. Please be patient.<br>
<br>
As far as I can see, it's caused by the DESTROY handler of the
Log::Dispatch::Email module, which is called when the program exits and
calls </font></font><font face="Arial,sans-serif" size="2"><font
size="2">Log::Dispatch::Email's </font></font><font
face="Arial,sans-serif" size="2"><font size="2">flush(). This sets $!
or $? to 0 (or both) and therefore (see perldoc -f die) modifies the
exit value.<br>
<br>
If you want to help, you could narrow it down even more, based on the
findings above.<br>
<br>
<span>-- <br>
-- Mike<br>
Mike Schilli<br>
<a class="moz-txt-link-abbreviated" href="mailto:m...@pe...">m...@pe...</a></span></font></font>
</body>
</html>
|