The PID file is created with open() in the parent process, while we still