diff options
author | human <human@neet.fi> | 2020-11-16 19:11:09 +0200 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2020-11-17 11:06:32 +0000 |
commit | 42f661ede18fdf0fe74f81b304d1f1d91616570d (patch) | |
tree | 7ce0f394d0a5779a4197e78e1b6cd970ebfb35e3 /lib | |
parent | f604536b08584bd7c979eed438f0c46ddd1871f0 (diff) | |
download | libfuse-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-x | lib/fuse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |