probe.py 文件源码

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

项目:black_zone 作者: zh-explorer 项目源码 文件源码
def __init__(self):
        self.queue = Queue()
        PIPE = subprocess.PIPE
        self.p = subprocess.Popen(self.cmd, stdout=PIPE)

        flags = fcntl.fcntl(self.p.stdout.fileno(), fcntl.F_GETFL)
        fcntl.fcntl(self.p.stdout.fileno(), fcntl.F_SETFL, (flags | os.O_NDELAY | os.O_NONBLOCK))
        self.out = self.p.stdout
        threading.Thread(target=self.sendData).start()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号