<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Lucida Console'; font-size:9pt; font-weight:400; font-style:normal;">On Donnerstag, 26. November 2009, Torben Friese wrote:<br>
> I have found out that this NOT a lenny problem. It is general.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Hello Torben,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>ok, understand. <br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> Have you seen the other post :<br>
><br>
> ####<br>
><br>
> If I set the debug(in cfg) to 4 the proxy write logging messages, then<br>
> via<br>
> $kamctl debug 2<br>
> is everything fine(still logging).<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>This sounds fine.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> If the debug is set to 2 and I run the proxy in foreground I also<br>
> receive log messages.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>You don't expect to receive log messages here? Do you've set fork=no, or log_stderr=no?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> #####<br>
><br>
><br>
> Another interesting thing is if you bring in a log at line 205<br>
> (daemonize.c) it is working:<br>
><br>
> LM_ERR("what ever \n");<br>
>         for (r=3; r < 32; r++){<br>
>                 close(r);<br>
>         }<br>
><br>
> It seems that close() is not able to close the fd for the log (return<br>
> value from mksock in syslog_async.c).<br>
><br>
> But If I let the for-loop counter start at 4 it is still not working.<br>
><br>
> After that I tried to set up log_fd as global( int log_fd=-1) and<br>
> include the headers, to check the "r" against the log_fd before execute<br>
> close(). But the same result.<br>
><br>
> Also a correct close(closelog_async()) in deamonize do not work.<br>
><br>
> I am open for any ideas, maybe I have oversight something. Could you<br>
> reproduce this ?<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>I did not found time to setup a test scenario today, should be able to do so on monday.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Regards,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Henning</p></body></html>