mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
std.ChildProcess: pass CLOEXEC when creating error pipe
This commit is contained in:
parent
04361dd461
commit
1bb30c5e22
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user