krb5 commit: Fix k5test.py exit handler

ghudson at mit.edu ghudson at mit.edu
Thu Jul 21 18:36:48 EDT 2022


https://github.com/krb5/krb5/commit/4f94e95850daa27bbf3471eae1a6a2e532910d85
commit 4f94e95850daa27bbf3471eae1a6a2e532910d85
Author: Greg Hudson <ghudson at mit.edu>
Date:   Thu Jul 21 15:33:11 2022 -0400

    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.

 src/util/k5test.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/util/k5test.py b/src/util/k5test.py
index 77ed82edb..2a86c5cdf 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:


More information about the cvs-krb5 mailing list