aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2022-07-21 15:33:11 -0400
committerGreg Hudson <ghudson@mit.edu>2022-07-21 15:33:11 -0400
commit4f94e95850daa27bbf3471eae1a6a2e532910d85 (patch)
treed3e5572c1048530bcae3c00ae9efbecb4736db65
parent8ecb797fb512faa80d1e03e4282e540745fc4341 (diff)
downloadkrb5-4f94e95850daa27bbf3471eae1a6a2e532910d85.zip
krb5-4f94e95850daa27bbf3471eae1a6a2e532910d85.tar.gz
krb5-4f94e95850daa27bbf3471eae1a6a2e532910d85.tar.bz2
Fix k5test.py exit handler
Commit 0b4580b09afe9791d81961c41f61e4f06edad58f mistakenly calls the nonexistent _stop_daemon() in the onexit handler. Replace the call with code to terminate the daemon and check its exit status.
-rw-r--r--src/util/k5test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util/k5test.py b/src/util/k5test.py
index 77ed82e..2a86c5c 100644
--- a/src/util/k5test.py
+++ b/src/util/k5test.py
@@ -506,7 +506,8 @@ def _onexit():
sys.stdout.flush()
sys.stdin.readline()
for proc in _daemons:
- _stop_daemon(proc)
+ os.kill(proc.pid, signal.SIGTERM)
+ _check_daemon(proc)
if not _success:
print
if not verbose: