| ... | @@ -396,7 +396,7 @@ pub const ChildProcess = struct { | ... | @@ -396,7 +396,7 @@ pub const ChildProcess = struct { |
| 396 | // and execve from the child process to the parent process. | 396 | // and execve from the child process to the parent process. |
| 397 | const err_pipe = blk: { | 397 | const err_pipe = blk: { |
| 398 | if (builtin.os.tag == .linux) { | 398 | if (builtin.os.tag == .linux) { |
| 399 | const fd = try os.eventfd(0, 0); | 399 | const fd = try os.eventfd(0, os.EFD_CLOEXEC); |
| 400 | // There's no distinction between the readable and the writeable | 400 | // There's no distinction between the readable and the writeable |
| 401 | // end with eventfd | 401 | // end with eventfd |
| 402 | break :blk [2]os.fd_t{ fd, fd }; | 402 | break :blk [2]os.fd_t{ fd, fd }; |