Terminal (Windows): don't try to detect terminals in MSYS shell

May fix CI hanging
This commit is contained in:
李通洲
2024-05-24 11:07:52 +08:00
parent 6326405c26
commit 4b33e1b691
@@ -289,6 +289,13 @@ conhost:
static uint32_t getTerminalInfo(FFTerminalResult* result, uint32_t pid)
{
if (getenv("MSYSTEM"))
{
// Don't try to detect terminals in MSYS shell
// It won't work because MSYS doesn't follow process tree of native Windows programs
return 0;
}
uint32_t ppid = 0;
bool hasGui;