commit: 53faa603ba0eb8e7f4485f6944964bfdfb9e2b17
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 23 16:09:22 2025 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Nov 23 16:09:22 2025 +0000
URL: https://gitweb.gentoo.org/proj/steve.git/commit/?id=53faa603
Assert that pidfd handler always finds a process
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
steve.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/steve.cxx b/steve.cxx
index 6b359e8..482ac86 100644
--- a/steve.cxx
+++ b/steve.cxx
@@ -112,9 +112,11 @@ static void steve_handle_pidfd(evutil_socket_t pid_fd,
short, void *userdata) {
}
state->processes.erase(it);
steve_wake_waiters(state);
- break;
+ return;
}
}
+
+ assert(0 && "pidfd triggered for unknown process");
}
static void steve_init(void *userdata, struct fuse_conn_info *)