Browse Source

[PXEXT] Avoid returning a false EOF when we have an empty buffer queued

tags/v0.9.4
Michael Brown 17 years ago
parent
commit
ee5bdb0d75
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/core/posix_io.c

+ 3
- 1
src/core/posix_io.c View File

293
 			free_iob ( iobuf );
293
 			free_iob ( iobuf );
294
 		}
294
 		}
295
 		file->pos += len;
295
 		file->pos += len;
296
-		return len;
296
+		if ( len )
297
+			return len;
298
+		break;
297
 	}
299
 	}
298
 
300
 
299
 	/* If file has completed, return (after returning all data) */
301
 	/* If file has completed, return (after returning all data) */

Loading…
Cancel
Save