added terminate()
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user