bpo-30555: Fix WindowsConsoleIO fails in the presence of fd redirection (GH-1927)
This works by not caching the handle and instead getting the handle from the file descriptor each time, so that if the actual handle changes by fd redirection closing/opening the console handle beneath our feet, we will keep working correctly.
S
Segev Finer committed
5e437fb872279960992c9a07f1a4c051b4948c53
Parent: 6b59e66
Committed by GitHub <noreply@github.com>
on 4/23/2021, 10:00:27 PM