This reintroduces the problem where the (grand) parent may have exited before the pidfile is written.