process.py 文件源码

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

项目:python-ptrace 作者: vstinner 项目源码 文件源码
def waitExit(self):
        while True:
            # Wait for any process signal
            event = self.waitEvent()
            event_cls = event.__class__

            # Process exited: we are done
            if event_cls == ProcessExit:
                return

            # Event different than a signal? Raise an exception
            if event_cls != ProcessSignal:
                raise event

            # Send the signal to the process
            signum = event.signum
            if signum not in (SIGTRAP, SIGSTOP):
                self.cont(signum)
            else:
                self.cont()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号