[os2]: Make anonymous pipes always inheritable

This commit is contained in:
flysand7
2024-07-18 22:57:30 +11:00
parent 4dcb75af6d
commit 75605a47e7
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import "core:sys/linux"
_pipe :: proc() -> (r, w: ^File, err: Error) {
fds: [2]linux.Fd
errno := linux.pipe2(&fds, {.CLOEXEC})
errno := linux.pipe2(&fds, {})
if errno != .NONE {
return nil, nil,_get_platform_error(errno)
}