]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix k5test.py exit handler
authorGreg Hudson <ghudson@mit.edu>
Thu, 21 Jul 2022 19:33:11 +0000 (15:33 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 21 Jul 2022 19:33:11 +0000 (15:33 -0400)
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

index 77ed82edbb53f50324fd043966bab8608cf39d04..2a86c5cdfc24c5c683dad0fd53fc1c2076a201e9 100644 (file)
@@ -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: