From 1bb30c5e228f4a5ebc42cc23e593ebad3bd6dbbe Mon Sep 17 00:00:00 2001 From: daurnimator Date: Sun, 30 Aug 2020 18:21:18 +1000 Subject: [PATCH] std.ChildProcess: pass CLOEXEC when creating error pipe --- lib/std/child_process.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/child_process.zig b/lib/std/child_process.zig index a5c69c904a..287fc3e7cd 100644 --- a/lib/std/child_process.zig +++ b/lib/std/child_process.zig @@ -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);