axkibe/lsyncd — Issue #40: wrong pid in pid-file
Author: axkibe
Created: 2011-11-16 15:02:13+00:00
State: open

Originally filed by wolfgang...@gmx.at on 2011-01-10T22:34:10

In the new release 2.0.0 the option --pidfile writes the wrong pid into the pid file:

As the function write_pidfile() is called before daemonize(), the pid of the first process is written, not the pid of the daemon. So start scripts which check that number do not work right.