Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
if grandchildpid:
# we are the intermediate child
if opts.pidfile is not None:
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()
- mypid = os.getpid()
- pfh.close()
+ if opts.pidfile is not None:
+ pidfile_h.close()
logger = subprocess.Popen(['logger','-d',
'-t','hippotat(stderr)',
logger = subprocess.Popen(['logger','-d',
'-t','hippotat(stderr)',