From: Greg Hudson Date: Thu, 21 Jul 2022 19:33:11 +0000 (-0400) Subject: Fix k5test.py exit handler X-Git-Tag: krb5-1.21-beta1~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f94e95850daa27bbf3471eae1a6a2e532910d85;p=thirdparty%2Fkrb5.git 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. --- diff --git a/src/util/k5test.py b/src/util/k5test.py index 77ed82edbb..2a86c5cdfc 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: