Merge pull request #3940 from flysand7/os2-handle-inheritance

[os2] Make all handles non-inheritable by default
This commit is contained in:
gingerBill
2024-07-19 11:38:03 +01:00
committed by GitHub
6 changed files with 22 additions and 10 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ _open_internal :: proc(name: string, flags: File_Flags, perm: int) -> (handle: u
share_mode := u32(win32.FILE_SHARE_READ | win32.FILE_SHARE_WRITE)
sa := win32.SECURITY_ATTRIBUTES {
nLength = size_of(win32.SECURITY_ATTRIBUTES),
bInheritHandle = .Close_On_Exec not_in flags,
bInheritHandle = .Inheritable in flags,
}
create_mode: u32 = win32.OPEN_EXISTING