krb5 commit: Fix k5test.py exit handler

[email protected]
Newsgroups gmane.comp.encryption.kerberos.cvs
Message-ID <[email protected]>
https://github.com/krb5/krb5/commit/4f94e95850daa27bbf3471eae1a6a2e532910d85
commit 4f94e95850daa27bbf3471eae1a6a2e532910d85
Author: Greg Hudson <[email protected]>
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:
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.