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()