From 833f3aec1ae9762f1eccb8628d841705c61aab76 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 24 Mar 1999 15:07:20 +0000 Subject: [PATCH] Abort on input error. --- debugger/editline.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/debugger/editline.c b/debugger/editline.c index de6f90a3077..7021bcbb5c2 100644 --- a/debugger/editline.c +++ b/debugger/editline.c @@ -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;