From 6f61477d2607eb7df816aae3e2e94fb1697554c8 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 24 Jul 2008 07:59:58 -0700 Subject: 9pfuse: ignore write errors on fusefd FUSE makes a reply write fail if the reply is no longer wanted. --- src/cmd/9pfuse/fuse.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/cmd') 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); } -- cgit v1.2.3