[radvd-devel-l] Wrong PID in PID-file

Reuben Hawkins reubenhwk at gmail.com
Wed Jan 25 00:11:37 EST 2012


On Tue, Jan 24, 2012 at 8:53 PM, Reuben Hawkins <reubenhwk at gmail.com> wrote:
> On Tue, Jan 24, 2012 at 8:45 PM, Reuben Hawkins <reubenhwk at gmail.com> wrote:
>> On Tue, Jan 24, 2012 at 9:25 AM, e9hack <e9hack at googlemail.com> wrote:
>>> Hi,
>>>
>>> radvd version 1.8.4 writes the wrong PID to the PID-file. On my router, I see two radvd
>>> processes. The first has PID n, the second PID n+1. The PID-file contains n-1. The
>>> PID-file is written bevor the running process calls daemon().
>>>
>>> Regards,
>>> Hartmut
>>>
>>> --
>>> radvd-devel-l mailing list  :  radvd-devel-l at litech.org
>>> http://lists.litech.org/listinfo/radvd-devel-l
>>
>> Verified.  I'll take a look.  Feel free to submit a patch if you have time.
>
> It appears that 'write_pid_file' only has to move down a few lines
> below daemonize....

Here's a fix committed to master...

https://github.com/reubenhwk/radvd/commit/41cda5dbbc1038f20913ef8c81b7d7d04fb3872b



More information about the radvd-devel-l mailing list