sandbox.py 文件源码

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

项目:uttt_engine_standalone 作者: smiley1983 项目源码 文件源码
def pause(self):
        """Pause the process by sending a SIGSTOP to the child"""
        try:
            self.command_process.stdin.write("STOP\n")
            self.command_process.stdin.flush()
        except IOError as exc:
            if exc.errno == 32: # Broken pipe, guard exited
                return
            raise
        item = self.resp_queue.get()
        if item[1] != "STOP" and item[1] is not None:
            raise SandboxError("Bad response from jailguard after pause, %s"
                    % (item,))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号