Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dtprobed: handle signals hitting dtprobed better
dtprobed is long-running and thus might get hit by signals at almost any time. These will cause long-running operations to return -EINTR, which needs handling. We were handling -EINTR when a fuse_session_receive_buf() happened, but dtprobed spends almost all its time blocked on poll() and that isn't handling -EINTR at all. This came to light when tests were written that intentionally hit dtprobed with signals: fix it by checking the poll() for EINTR too. (Done in two places because the core FUSE loop is duplicated for FUSE 2 and 3.) Signed-off-by: Nick Alcock <nick.alcock@oracle.com> Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information