diff options
author | dzwdz | 2023-08-27 02:06:32 +0200 |
---|---|---|
committer | dzwdz | 2023-08-27 02:06:32 +0200 |
commit | e43939bcc6123e02314aa403eef94d5ace441f7f (patch) | |
tree | ac0cea10e8708ae1a6a7a400257c4bc59175a91f /ports/cproc/patches/0-cloexec.patch | |
parent | 1f938c20b4a82ca1267ab9a1ec0922878a21ca6b (diff) |
ports: qbe, cproc :^)
Diffstat (limited to 'ports/cproc/patches/0-cloexec.patch')
-rw-r--r-- | ports/cproc/patches/0-cloexec.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/ports/cproc/patches/0-cloexec.patch b/ports/cproc/patches/0-cloexec.patch new file mode 100644 index 0000000..4102e05 --- /dev/null +++ b/ports/cproc/patches/0-cloexec.patch @@ -0,0 +1,17 @@ +--- driver.c.orig ++++ driver.c +@@ -165,12 +165,10 @@ spawnphase(struct stageinfo *phase, int *fd, char *input, char *output, bool las + goto err1; + } + if (fcntl(pipefd[0], F_SETFD, FD_CLOEXEC) < 0) { +- ret = errno; +- goto err2; ++ warn("fcntl(..., F_SETFD, FD_CLOEXEC):"); + } + if (fcntl(pipefd[1], F_SETFD, FD_CLOEXEC) < 0) { +- ret = errno; +- goto err2; ++ warn("fcntl(..., F_SETFD, FD_CLOEXEC):"); + } + ret = posix_spawn_file_actions_adddup2(&actions, pipefd[1], 1); + if (ret) |