• Dan Kegel's avatar
    msvcrt: Fix EOF behavior on read from pipe or console. · 316869b2
    Dan Kegel authored
    The canonical way to detect EOF on read is when you request more than
    zero bytes, but zero bytes come back.  Switching to this method seems
    to handle a few problem cases better.  Also handle ERROR_BROKEN_PIPE
    properly just in case.
    316869b2
file.c 82.8 KB