From c686133172d312a4a8c7c2b37b397bf011f63b1e Mon Sep 17 00:00:00 2001 From: Tetralux Date: Thu, 31 Mar 2022 06:37:11 +0000 Subject: [PATCH] Have get_std_handle() no longer make the handles uninheritable This caused all handles returned by GetStdHandle() to also not be inheritable, which prevents you from handing them to child processes that you might create. This fixes that. --- core/os/file_windows.odin | 3 --- 1 file changed, 3 deletions(-) diff --git a/core/os/file_windows.odin b/core/os/file_windows.odin index 4c8d385f2..61e9e0925 100644 --- a/core/os/file_windows.odin +++ b/core/os/file_windows.odin @@ -320,9 +320,6 @@ stderr := get_std_handle(uint(win32.STD_ERROR_HANDLE)) get_std_handle :: proc "contextless" (h: uint) -> Handle { fd := win32.GetStdHandle(win32.DWORD(h)) - when size_of(uintptr) == 8 { - win32.SetHandleInformation(fd, win32.HANDLE_FLAG_INHERIT, 0) - } return Handle(fd) }