Commit 833f3aec authored by Alexandre Julliard's avatar Alexandre Julliard

Abort on input error.

parent d3354d04
......@@ -293,7 +293,10 @@ TTYget()
while ( ( retv = read( 0, &c, (size_t)1 ) ) == -1 )
{
if ( errno != EINTR )
{
perror( "read" );
return EOF;
}
}
return retv == 1 ? c : EOF;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment