make filesystem handling of read9pmsg() consistent

This commit is contained in:
cinap_lenrek 2013-06-16 06:26:31 +02:00
parent d84aeddee7
commit e36d9f5c4e
17 changed files with 46 additions and 27 deletions

View file

@ -59,7 +59,9 @@ getreq(Srv *s)
Req *r;
qlock(&s->rlock);
if((n = read9pmsg(s->infd, s->rbuf, s->msize)) <= 0){
while((n = read9pmsg(s->infd, s->rbuf, s->msize)) == 0)
;
if(n < 0){
qunlock(&s->rlock);
return nil;
}