aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhuman <human@neet.fi>2020-11-16 19:11:09 +0200
committerNikolaus Rath <Nikolaus@rath.org>2020-11-17 11:06:32 +0000
commit42f661ede18fdf0fe74f81b304d1f1d91616570d (patch)
tree7ce0f394d0a5779a4197e78e1b6cd970ebfb35e3 /lib
parentf604536b08584bd7c979eed438f0c46ddd1871f0 (diff)
downloadlibfuse-42f661ede18fdf0fe74f81b304d1f1d91616570d.tar.gz
fix errno comparison
this affected `-o remember` in single-thread mode, it could prematurely exit if a signal was received # start an example filesystem from example/ ./passthrough -f -s -o remember=5 ./mnt # make the poll() call return with EINTR pkill -PIPE passthrough
Diffstat (limited to 'lib')
-rwxr-xr-xlib/fuse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 2125cda..a8c5915 100755
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -4533,7 +4533,7 @@ static int fuse_session_loop_remember(struct fuse *f)
res = poll(&fds, 1, timeout * 1000);
if (res == -1) {
- if (errno == -EINTR)
+ if (errno == EINTR)
continue;
else
break;