chiark
/
gitweb
/
~mdw
/
hippotat
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dc32c3
)
fix pidfile handling
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 10 Apr 2017 00:46:54 +0000
(
01:46
+0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Mon, 10 Apr 2017 00:46:54 +0000
(
01:46
+0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
hippotatd
patch
|
blob
|
blame
|
history
diff --git
a/hippotatd
b/hippotatd
index 834dc5d473169631e3885426ada81f4dd7c2cb37..123943a9cc9092eba885ee67cf2b0202f21461a5 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:
- print(grandchildpid, file=p
f
h)
- p
f
h.close()
+ print(grandchildpid, file=p
idfile_
h)
+ p
idfile_
h.close()
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)',