added terminate()
This commit is contained in:
@@ -381,6 +381,7 @@ def main():
|
|||||||
time.sleep(minutesToWait * 60)
|
time.sleep(minutesToWait * 60)
|
||||||
print("")
|
print("")
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
print("")
|
||||||
print("Caught control-c, exiting...")
|
print("Caught control-c, exiting...")
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
@@ -417,6 +418,7 @@ def main():
|
|||||||
print("Caught Ctrl-C, cancelling collection...")
|
print("Caught Ctrl-C, cancelling collection...")
|
||||||
# kill gstat if freebsd
|
# kill gstat if freebsd
|
||||||
if is_freebsd():
|
if is_freebsd():
|
||||||
|
process.terminate()
|
||||||
process.kill()
|
process.kill()
|
||||||
exit()
|
exit()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user