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

[os2] Make all handles non-inheritable by default
This commit is contained in:
gingerBill authored and GitHub committed 2024-07-19 11:38:03 +01:00
commit 2f8399fe20
6 files changed
+22 -10

No files matched your search

+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