[os2]: Make anonymous pipes always inheritable
This commit is contained in:
1 parent
4dcb75af6d
commit
75605a47e7
2 files changed
+6
-2
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user