popen: handle issues with fd0/1 being closed
also check for failure of dup2 and abort the child rather than reading/writing the wrong file.
Showing
想要评论请 注册 或 登录
also check for failure of dup2 and abort the child rather than reading/writing the wrong file.