aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2004-02-09 12:05:14 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2004-02-09 12:05:14 +0000
commit4e71c9f3a88d996a166c8977945dc89536baa884 (patch)
tree5bbee6c8b0730a92f8b365e6d7614fcf77ef20a6 /lib/fuse.c
parent641402a7c82e2a48242f0ef851ec36737994d753 (diff)
downloadlibfuse-4e71c9f3a88d996a166c8977945dc89536baa884.tar.gz
fix
Diffstat (limited to 'lib/fuse.c')
-rw-r--r--lib/fuse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index f88653d..7aa1eca 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -361,15 +361,15 @@ static int send_reply_raw(struct fuse *f, char *outbuf, size_t outsize)
fflush(stdout);
}
- /* This needs to be done before the reply because otherwise the
- scheduler can tricks with us, and only let the counter be increased
+ /* This needs to be done before the reply, otherwise the scheduler
+ could play tricks with us, and only let the counter be increased
long after the operation is done */
inc_avail(f);
res = write(f->fd, outbuf, outsize);
if(res == -1) {
/* ENOENT means the operation was interrupted */
- if(errno != ENOENT)
+ if(!f->exited && errno != ENOENT)
perror("fuse: writing device");
return -errno;
}