https://bugs.winehq.org/show_bug.cgi?id=49852
--- Comment #4 from Jacek Caban jacek@codeweavers.com --- (In reply to Martin Storsjö from comment #3)
(In reply to Jacek Caban from comment #2)
Avoiding using tty code path reduces that time to 2.5s (something like wine ihateeh-x86_64.exe |cat)
Oh, that's interesting. So pipeing stdout in that case makes it a non-tty, avoiding the slow code, but redirecting stdout to /dev/null still considers it a tty?
Yeah, it's msvcrt that considers /dev/null to be a tty because we report FILE_TYPE_CHAR type. We should probably find a better solution.