add thanatolog

This commit is contained in:
Alexey Avramov
2019-04-29 23:17:35 +09:00
parent 6d9025cf43
commit 3428ac08b4
4 changed files with 195 additions and 14 deletions

View File

@@ -4,6 +4,21 @@
from memco import *
from signal import signal, SIGTERM
from time import sleep
def signal_handler(signum, frame):
print('Got signal {}'.format(signum))
#sleep(1)
exit()
signal(SIGTERM, signal_handler)
# печать показателей на этапах работы
def print_mem():