anticrash.py 文件源码

python
阅读 21 收藏 0 点赞 0 评论 0

项目:TGCli-Anticrash 作者: Dragon-Born 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号