commit:     67d3b523e9a7f50ce549fe3014ffb2285574bba5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 13 13:54:56 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 13 13:54:56 2025 +0000
URL:        https://gitweb.gentoo.org/proj/steve.git/commit/?id=67d3b523

Handle EAGAIN/EINTR from fuse_receive_buf()

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 steve.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/steve.cxx b/steve.cxx
index 7281e28..596780e 100644
--- a/steve.cxx
+++ b/steve.cxx
@@ -725,7 +725,7 @@ static void steve_handle_cuse(evutil_socket_t, short, void 
*userdata) {
        steve_state *state = static_cast<steve_state *>(userdata);
 
        int rd = fuse_session_receive_buf(state->session, &state->buf);
-       if (rd <= 0) {
+       if (rd <= 0 && rd != -EINTR && rd != -EAGAIN) {
                state->retval = 1;
                if (rd == 0)
                        std::print(stderr, "EOF from CUSE, exiting (device 
already taken?)\n");

Reply via email to