tests/killdaemons.py
changeset 29811 4ddfb730789d
parent 28942 05cb9c6f310e
child 32677 f840b2621cce
--- a/tests/killdaemons.py	Wed Aug 17 20:56:12 2016 +0900
+++ b/tests/killdaemons.py	Thu Aug 18 18:43:48 2016 +0900
@@ -82,7 +82,11 @@
         for line in fp:
             try:
                 pid = int(line)
+                if pid <= 0:
+                    raise ValueError
             except ValueError:
+                logfn('# Not killing daemon process %s - invalid pid'
+                      % line.rstrip())
                 continue
             kill(pid, logfn, tryhard)
         fp.close()