(FT_Stream_Open): Check errno only if read system call returns -1.
Remove a redundant parenthesis.
This commit is contained in:
parent
37827608c2
commit
28b55a9bb6
|
@ -1,3 +1,9 @@
|
|||
2006-05-11 Masatake YAMATO <jet@gyve.org>
|
||||
|
||||
* builds/unix/ftsystem.c (FT_Stream_Open): Check errno only if
|
||||
read system call returns -1.
|
||||
Remove a redundant parenthesis.
|
||||
|
||||
2006-05-10 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* builds/unix/ftsystem.c (FT_Stream_Open): Avoid infinite loop if
|
||||
|
|
|
@ -303,9 +303,9 @@
|
|||
stream->base + total_read_count,
|
||||
stream->size - total_read_count );
|
||||
|
||||
if ( ( read_count <= 0 ) )
|
||||
if ( read_count <= 0 )
|
||||
{
|
||||
if ( errno == EINTR )
|
||||
if ( read_count == -1 && errno == EINTR )
|
||||
continue;
|
||||
|
||||
FT_ERROR(( "FT_Stream_Open:" ));
|
||||
|
|
Loading…
Reference in New Issue