compile.py 文件源码

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

项目:jd4 作者: vijos 项目源码 文件源码
def do_build(self, output_file, cgroup_file):
        pid = fork()
        if not pid:
            chdir('/out')
            os_close(STDIN_FILENO)
            if output_file:
                fd = os_open(output_file, O_WRONLY)
                dup2(fd, STDOUT_FILENO)
                dup2(fd, STDERR_FILENO)
                os_close(fd)
            if cgroup_file:
                enter_cgroup(cgroup_file)
            execve(self.compiler_file, self.compiler_args, SPAWN_ENV)
        return wait_and_reap_zombies(pid)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号