if grandchildpid:
# we are the intermediate child
if opts.pidfile is not None:
- print(grandchildpid, file=pfh)
- pfh.close()
+ print(grandchildpid, file=pidfile_h)
+ pidfile_h.close()
os._exit(0)
- mypid = os.getpid()
- pfh.close()
+ if opts.pidfile is not None:
+ pidfile_h.close()
logger = subprocess.Popen(['logger','-d',
'-t','hippotat(stderr)',