aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2008-07-24 07:59:58 -0700
committerRuss Cox <rsc@swtch.com>2008-07-24 07:59:58 -0700
commit6f61477d2607eb7df816aae3e2e94fb1697554c8 (patch)
tree17bd07c9ef7ebdf05ed32e72e9591b62b6f6812c /src/cmd/9pfuse
parent77fb6ec71369e500bab001a328c5363181980d6f (diff)
downloadplan9port-6f61477d2607eb7df816aae3e2e94fb1697554c8.tar.gz
plan9port-6f61477d2607eb7df816aae3e2e94fb1697554c8.tar.bz2
plan9port-6f61477d2607eb7df816aae3e2e94fb1697554c8.zip
9pfuse: ignore write errors on fusefd
FUSE makes a reply write fail if the reply is no longer wanted.
Diffstat (limited to 'src/cmd/9pfuse')
-rw-r--r--src/cmd/9pfuse/fuse.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/9pfuse/fuse.c b/src/cmd/9pfuse/fuse.c
index 5057bde1..026142bc 100644
--- a/src/cmd/9pfuse/fuse.c
+++ b/src/cmd/9pfuse/fuse.c
@@ -241,8 +241,7 @@ replyfuse(FuseMsg *m, void *arg, int narg)
vec[1].iov_len = narg;
nvec++;
}
- if(writev(fusefd, vec, nvec) < 0)
- sysfatal("replyfuse: %r");
+ writev(fusefd, vec, nvec);
freefusemsg(m);
}
@@ -259,8 +258,7 @@ replyfuseerrno(FuseMsg *m, int e)
hdr.unique = m->hdr->unique;
if(debug)
fprint(2, "FUSE <- %#G\n", m->hdr, &hdr, 0);
- if(write(fusefd, &hdr, sizeof hdr) < 0)
- sysfatal("replyfuseerror: %r");
+ write(fusefd, &hdr, sizeof hdr);
freefusemsg(m);
}