Browse Source

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.
Tetralux 3 years ago
parent
commit
c686133172
1 changed files with 0 additions and 3 deletions
  1. 0 3
      core/os/file_windows.odin

+ 0 - 3
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 {
 get_std_handle :: proc "contextless" (h: uint) -> Handle {
 	fd := win32.GetStdHandle(win32.DWORD(h))
 	fd := win32.GetStdHandle(win32.DWORD(h))
-	when size_of(uintptr) == 8 {
-		win32.SetHandleInformation(fd, win32.HANDLE_FLAG_INHERIT, 0)
-	}
 	return Handle(fd)
 	return Handle(fd)
 }
 }