mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-16 02:16:58 +00:00
Abort on input error.
This commit is contained in:
parent
d3354d04f7
commit
833f3aec1a
|
@ -293,7 +293,10 @@ TTYget()
|
||||||
while ( ( retv = read( 0, &c, (size_t)1 ) ) == -1 )
|
while ( ( retv = read( 0, &c, (size_t)1 ) ) == -1 )
|
||||||
{
|
{
|
||||||
if ( errno != EINTR )
|
if ( errno != EINTR )
|
||||||
|
{
|
||||||
perror( "read" );
|
perror( "read" );
|
||||||
|
return EOF;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return retv == 1 ? c : EOF;
|
return retv == 1 ? c : EOF;
|
||||||
|
|
Loading…
Reference in a new issue