added terminate()

This commit is contained in:
Marc Mance
2024-08-01 13:00:20 -04:00
parent e5f1b0460a
commit 6b6342dfc1

View File

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