On Sun, 21 Mar 2021 13:01:24 +0900 Takashi Yano wrote: > Takashi Yano (2): > Cygwin: syscalls.cc: Make _get_osfhandle() return appropriate handle. > Cygwin: pty: Add hook for GetStdHandle() to return appropriate handle. > > winsup/cygwin/fhandler_tty.cc | 19 +++++++++++++++++++ > winsup/cygwin/syscalls.cc | 13 ++++++++++++- > 2 files changed, 31 insertions(+), 1 deletion(-)
I submitted these patches, however, I still wonder if we really need these patches. I cannot imagine the situation where handle itself is needed rather than file descriptor. However, following cygwin apps/dlls call _get_osfhandle(): ccmake.exe cmake.exe cpack.exe ctest.exe ddrescue.exe And also, following cygwin apps/dlls call GetStdHandle(): ccmake.exe cmake.exe cpack.exe ctest.exe run.exe cygusb0.dll tk86.dll in my installation. Therefore, some of these apps/dlls may need these patches... -- Takashi Yano <takashi.y...@nifty.ne.jp>