9pfuse: ignore write errors on fusefd
FUSE makes a reply write fail if the reply is no longer wanted.
This commit is contained in:
parent
77fb6ec713
commit
6f61477d26
1 changed files with 2 additions and 4 deletions
|
|
@ -241,8 +241,7 @@ replyfuse(FuseMsg *m, void *arg, int narg)
|
||||||
vec[1].iov_len = narg;
|
vec[1].iov_len = narg;
|
||||||
nvec++;
|
nvec++;
|
||||||
}
|
}
|
||||||
if(writev(fusefd, vec, nvec) < 0)
|
writev(fusefd, vec, nvec);
|
||||||
sysfatal("replyfuse: %r");
|
|
||||||
freefusemsg(m);
|
freefusemsg(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -259,8 +258,7 @@ replyfuseerrno(FuseMsg *m, int e)
|
||||||
hdr.unique = m->hdr->unique;
|
hdr.unique = m->hdr->unique;
|
||||||
if(debug)
|
if(debug)
|
||||||
fprint(2, "FUSE <- %#G\n", m->hdr, &hdr, 0);
|
fprint(2, "FUSE <- %#G\n", m->hdr, &hdr, 0);
|
||||||
if(write(fusefd, &hdr, sizeof hdr) < 0)
|
write(fusefd, &hdr, sizeof hdr);
|
||||||
sysfatal("replyfuseerror: %r");
|
|
||||||
freefusemsg(m);
|
freefusemsg(m);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue