zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 1bb30c5e228f4a5ebc42cc23e593ebad3bd6dbbe (tree)
parent 04361dd461bff65100abdf0c6036806fdcc0a49e
Author: daurnimator <quae@daurnimator.com>
Date:   Sun, 30 Aug 2020 18:21:18 +1000

std.ChildProcess: pass CLOEXEC when creating error pipe

Diffstat:
Mlib/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 @@ -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);