Expose xpipe2 as symbol

This commit is contained in:
topjohnwu
2026-10-02 17:17:48 -07:00
parent 32ee775026
commit 33d09a2aff
5 changed files with 6 additions and 7 deletions
+2 -2
View File
@@ -38,11 +38,11 @@ struct exec_t {
};
static int exec_command(exec_t &exec) {
auto pipefd = array<int, 2>{-1, -1};
auto pipefd = array{-1, -1};
int outfd = -1;
if (exec.fd == -1) {
if (xpipe2(pipefd, O_CLOEXEC) == -1)
if (xpipe2(pipefd.data(), O_CLOEXEC) == -1)
return -1;
outfd = pipefd[1];
} else if (exec.fd >= 0) {