<!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>
&gt; 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>&gt; Have you seen the other post :<br>
&gt;<br>
&gt; ####<br>
&gt;<br>
&gt; If I set the debug(in cfg) to 4 the proxy write logging messages, then<br>
&gt; via<br>
&gt; $kamctl debug 2<br>
&gt; 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>&gt; If the debug is set to 2 and I run the proxy in foreground I also<br>
&gt; 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>&gt; #####<br>
&gt;<br>
&gt;<br>
&gt; Another interesting thing is if you bring in a log at line 205<br>
&gt; (daemonize.c) it is working:<br>
&gt;<br>
&gt;         LM_ERR("what ever \n");<br>
&gt;         for (r=3; r &lt; 32; r++){<br>
&gt;                 close(r);<br>
&gt;         }<br>
&gt;<br>
&gt; It seems that close() is not able to close the fd for the log (return<br>
&gt; value from mksock in syslog_async.c).<br>
&gt;<br>
&gt; But If I let the for-loop counter start at 4 it is still not working.<br>
&gt;<br>
&gt; After that I tried to set up log_fd as global( int log_fd=-1) and<br>
&gt; include the headers, to check the "r" against the log_fd before execute<br>
&gt; close(). But the same result.<br>
&gt;<br>
&gt; Also a correct close(closelog_async()) in deamonize do not work.<br>
&gt;<br>
&gt; I am open for any ideas, maybe I have oversight something. Could you<br>
&gt; 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>