what became of pflogd -p pidfile?

2011-01-27 Thread Harald Dunkel
Hi folks, Problem: For rotating pflog log files I need the PID of the appropriate pflogd. For 4.3 I could rely upon pflogd -p pflogd4.pid, but for 4.8 the -p is not allowed anymore :-(. The man page still points to newsyslog, but thats all. Of course this can be solved by messing around with

Re: what became of pflogd -p pidfile?

2011-01-27 Thread Otto Moerbeek
On Thu, Jan 27, 2011 at 01:45:30PM +0100, Harald Dunkel wrote: Hi folks, Problem: For rotating pflog log files I need the PID of the appropriate pflogd. For 4.3 I could rely upon pflogd -p pflogd4.pid, but for 4.8 the -p is not allowed anymore :-(. The man page still points to newsyslog,

Re: what became of pflogd -p pidfile?

2011-01-27 Thread Harald Dunkel
On 01/27/11 14:01, Otto Moerbeek wrote: -p is prone to race conditions. A race condition on writing a pid file in main()? It would be very interesting to get more details about this. Regards Harri

Re: what became of pflogd -p pidfile?

2011-01-27 Thread Otto Moerbeek
On Thu, Jan 27, 2011 at 03:08:32PM +0100, Harald Dunkel wrote: On 01/27/11 14:01, Otto Moerbeek wrote: -p is prone to race conditions. A race condition on writing a pid file in main()? It would be very interesting to get more details about this. Regards Harri in genreal, when

Re: what became of pflogd -p pidfile?

2011-01-27 Thread Harald Dunkel
On 01/27/11 15:37, Otto Moerbeek wrote: in genreal, when things go wrong, a pid file might remain. That file does not reflect the pid of a pflogd daemon. You might be sending a HUP to the wrong process. A race condition occurs when pflogd is restarted, and in the meantime a process reads the