fdopen fix

This commit is contained in:
q66 2017-05-08 20:00:51 +02:00
parent 8319674705
commit 31c3602839

View file

@ -261,7 +261,7 @@ OSTD_EXPORT void subprocess::open_impl(
}
if (use_err == process_stream::PIPE) {
fd_stderr.close(true);
fd_stderr.fdopen(out, false);
fd_stderr.fdopen(err, false);
}
pid = int(cpid);
errno_fd = std::exchange(fd_errno[1], -1);