From: human Date: Mon, 16 Nov 2020 17:11:09 +0000 (+0200) Subject: fix errno comparison X-Git-Tag: fuse-3.10.1~2 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=42f661ede18fdf0fe74f81b304d1f1d91616570d;p=qemu-gpiodev%2Flibfuse.git 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 --- 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;