check against plan 9
This commit is contained in:
parent
727facb605
commit
4dd07e012c
4 changed files with 19 additions and 22 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue