forked from OctaForge/libostd
fdopen fix
This commit is contained in:
parent
8319674705
commit
31c3602839
|
@ -261,7 +261,7 @@ OSTD_EXPORT void subprocess::open_impl(
|
||||||
}
|
}
|
||||||
if (use_err == process_stream::PIPE) {
|
if (use_err == process_stream::PIPE) {
|
||||||
fd_stderr.close(true);
|
fd_stderr.close(true);
|
||||||
fd_stderr.fdopen(out, false);
|
fd_stderr.fdopen(err, false);
|
||||||
}
|
}
|
||||||
pid = int(cpid);
|
pid = int(cpid);
|
||||||
errno_fd = std::exchange(fd_errno[1], -1);
|
errno_fd = std::exchange(fd_errno[1], -1);
|
||||||
|
|
Loading…
Reference in a new issue