check against plan 9

This commit is contained in:
rsc 2004-12-28 19:25:16 +00:00
parent 727facb605
commit 4dd07e012c
4 changed files with 19 additions and 22 deletions

View file

@ -26,6 +26,7 @@ loop:
i = read(bp->fid, bp->bbuf, bp->bsize);
bp->gbuf = bp->bbuf;
if(i <= 0) {
bp->state = Bracteof;
if(i < 0)
bp->state = Binactive;
return Beof;