def signal_handler(signal, frame):
print('stopping script')
os.setuid(0)
for x in data:
try:
os.kill(int(data[x]['pid']), 9)
print('killing ' + x)
except:
pid_not_found = True
print("Byebye...")
f = open('.proc','w+')
f.write('0')
f.close()
wipe = subprocess.Popen(["screen", "-wipe"], stdout=subprocess.PIPE)
os.kill(os.getpid(), 9)
评论列表
文章目录