diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-06-16 06:26:31 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-06-16 06:26:31 +0200 |
commit | e36d9f5c4e667970a4a7aa15744e304ccc7c58f3 (patch) | |
tree | 353251f1adcf5cd89a1cc901f7aed099011b8a19 /sys/src/cmd/vnc/exportfs.c | |
parent | d84aeddee7911c9df739bad58c72189ac336f23f (diff) |
make filesystem handling of read9pmsg() consistent
Diffstat (limited to 'sys/src/cmd/vnc/exportfs.c')
-rw-r--r-- | sys/src/cmd/vnc/exportfs.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/vnc/exportfs.c b/sys/src/cmd/vnc/exportfs.c index a2feb83ae..07e20e477 100644 --- a/sys/src/cmd/vnc/exportfs.c +++ b/sys/src/cmd/vnc/exportfs.c @@ -149,8 +149,9 @@ exportproc(Export *fs) errdepth(ed); q = smalloc(sizeof(Exq)); - n = read9pmsg(fs->io, q->buf, Maxrpc); - if(n <= 0 || convM2S(q->buf, n, &q->rpc) != n) + while((n = read9pmsg(fs->io, q->buf, Maxrpc)) == 0) + ; + if(n < 0 || convM2S(q->buf, n, &q->rpc) != n) goto bad; if(exdebug) |