mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Minor error handling improvements and minor code polish
darcs-hash:20070801173801-ac50b-11a281d9f622e935c1f138355babd20269068f35.gz
This commit is contained in:
8
reader.c
8
reader.c
@@ -2962,16 +2962,18 @@ static int read_ni( int fd, io_data_t *io )
|
||||
int c;
|
||||
|
||||
c = fread(buff, 1, 4096, in_stream);
|
||||
if( ferror( in_stream ) )
|
||||
|
||||
if( ferror( in_stream ) && ( errno != EINTR ) )
|
||||
{
|
||||
debug( 1,
|
||||
_( L"Error while reading commands" ) );
|
||||
|
||||
_( L"Error while reading from file descriptor" ) );
|
||||
|
||||
/*
|
||||
Reset buffer on error. We won't evaluate incomplete files.
|
||||
*/
|
||||
acc.used=0;
|
||||
break;
|
||||
|
||||
}
|
||||
|
||||
b_append( &acc, buff, c );
|
||||
|
||||
Reference in New Issue
Block a user