From 42f661ede18fdf0fe74f81b304d1f1d91616570d Mon Sep 17 00:00:00 2001 From: human Date: Mon, 16 Nov 2020 19:11:09 +0200 Subject: [PATCH] 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 --- lib/fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2