adding patch to allow forked children to know the global pidfile variable