summaryrefslogtreecommitdiff
path: root/ports/cproc/patches/0-cloexec.patch
blob: 4102e05c519d10890ac40543f08f6748a5a16c71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)