~mdw
/
hippotat
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix pidfile handling
[hippotat]
/
hippotatd
diff --git
a/hippotatd
b/hippotatd
index
834dc5d
..
123943a
100755
(executable)
--- a/
hippotatd
+++ b/
hippotatd
@@
-400,12
+400,12
@@
def daemonise():
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=p
f
h)
- p
f
h.close()
+ print(grandchildpid, file=p
idfile_
h)
+ p
idfile_
h.close()
os._exit(0)
os._exit(0)
- mypid = os.getpid()
-
pf
h.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)',