From 6b6342dfc1977a4f596db68dd1dfd34021d77a5f Mon Sep 17 00:00:00 2001 From: Marc Mance Date: Thu, 1 Aug 2024 13:00:20 -0400 Subject: [PATCH] added terminate() --- collect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/collect.py b/collect.py index 3c4f39f..38723cd 100644 --- a/collect.py +++ b/collect.py @@ -381,6 +381,7 @@ def main(): time.sleep(minutesToWait * 60) print("") except KeyboardInterrupt: + print("") print("Caught control-c, exiting...") exit() @@ -417,6 +418,7 @@ def main(): print("Caught Ctrl-C, cancelling collection...") # kill gstat if freebsd if is_freebsd(): + process.terminate() process.kill() exit()