authorgravatar for quae@daurnimator.comdaurnimator <quae@daurnimator.com> 2020-08-30 18:21:18+10:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-30 14:21:14-04:00
log1bb30c5e228f4a5ebc42cc23e593ebad3bd6dbbe
tree0c28dea3b2e04ed3a8db5d34e93b147e075952a6
parent04361dd461bff65100abdf0c6036806fdcc0a49e

std.ChildProcess: pass CLOEXEC when creating error pipe


1 files changed, 1 insertions(+), 1 deletions(-)

lib/std/child_process.zig+1-1
......@@ -401,7 +401,7 @@ pub const ChildProcess = struct {
401401 // end with eventfd
402402 break :blk [2]os.fd_t{ fd, fd };
403403 } else {
404 break :blk try os.pipe();
404 break :blk try os.pipe2(os.O_CLOEXEC);
405405 }
406406 };
407407 errdefer destroyPipe(err_pipe);