<br><br><div class="gmail_quote">On Fri, Feb 15, 2013 at 9:30 AM, Simon Kelley <span dir="ltr"><<a href="mailto:simon@thekelleys.org.uk" target="_blank">simon@thekelleys.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 13/02/13 22:17, C V wrote:<br>
><br>
><br>
><br>
><br>
>> Sent: Wed, February 13, 2013 12:19:51 PM<br>
>> Subject: [Dnsmasq-discuss] SIGHUP issue<br>
>><br>
><br>
>> The only 1 time I have been able to reproduce by hand is by trying it on a<br>
>> long-running (many days) process in a cloud that was not being used actively.<br>
>><br>
><br>
><br>
> OK this part is reproducible and may not be the real problem. In this case the<br>
> logrotate causes dnsmasq to not write to the new dnsmasq.log file. It writes to<br>
> the old file (dnsmasq.log-20130213). The logs indicate that SIGHUP indeed is<br>
> processed.<br>
><br>
> There is a bug in our logrotate config<br>
> postrotate<br>
> [ ! -f /var/run/dnsmasq.pid ] || kill -USR2 `cat /var/run/dnsmasq.pid`<br>
><br>
> should be<br>
> postrotate<br>
> [ ! -f /var/run/dnsmasq.pid ] || kill -USR2 `cat<br>
> /var/run/dnsmasq/dnsmasq.pid`<br>
><br>
><br>
<br>
</div>I'm confused now if there's a real problem or not. Certainly there is no<br>
problem with SIGHUP that I know of.<br>
<br>
A question: do you ever restart dnsmasq? Is there are race between<br>
restarts and SIGHUP before the pidfile contents are valid?<br>
<br>
Cheers,<br>
<br>
Simon.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss" target="_blank">http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss</a><br>
</div></div></blockquote></div><br><br><br>Looks like an OS problem, nevertheless DNSmasq rely on some unitiliazed value at startup,<div>i encourage the use of valgrind which i never saw say something wrong and detect many hard to find bug.<br clear="all">
<div><br></div>-- <br><div>---------------------------------------------------------------------------------------------------------------------<br>() ascii ribbon campaign - against html e-mail <br>/\ </div>
</div>