std.ChildProcess: pass CLOEXEC when creating error pipe

This commit is contained in:
daurnimator authored and Andrew Kelley committed 2020-08-30 14:21:14 -04:00
1 parent 04361dd461
commit 1bb30c5e22
1 file changed
+1 -1
+1 -1
View File
@@ -401,7 +401,7 @@ pub const ChildProcess = struct {
// end with eventfd
break :blk [2]os.fd_t{ fd, fd };
} else {
break :blk try os.pipe();
break :blk try os.pipe2(os.O_CLOEXEC);
}
};
errdefer destroyPipe(err_pipe);