commit:     c9e53381e0b97133652c64ad1a4044cf9457859e
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 13 13:31:18 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 13 13:31:18 2025 +0000
URL:        https://gitweb.gentoo.org/proj/steve.git/commit/?id=c9e53381

Rename the process event field to pidfd_event

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

 steve.cxx | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/steve.cxx b/steve.cxx
index 089d442..0addece 100644
--- a/steve.cxx
+++ b/steve.cxx
@@ -81,7 +81,7 @@ struct steve_process {
        int pid_fd{-1};
        ssize_t tokens_held{0};
        bool token_reserved{false};
-       event_ptr event;
+       event_ptr pidfd_event;
 
        ~steve_process() {
                if (pid_fd != -1)
@@ -398,7 +398,7 @@ static void steve_open(fuse_req_t req, struct 
fuse_file_info *fi)
 
        if (state->processes.find(fi->fh) != state->processes.end()) {
                assert(state->processes[fi->fh].pid_fd != -1);
-               assert(state->processes[fi->fh].event);
+               assert(state->processes[fi->fh].pidfd_event);
        } else {
                int pid_fd = syscall(SYS_pidfd_open, context->pid, 0);
                if (pid_fd == -1) {
@@ -422,7 +422,7 @@ static void steve_open(fuse_req_t req, struct 
fuse_file_info *fi)
                }
 
                state->processes[fi->fh].pid_fd = pid_fd;
-               state->processes[fi->fh].event = std::move(pidfd_event);
+               state->processes[fi->fh].pidfd_event = std::move(pidfd_event);
        }
 
        fuse_reply_open(req, fi);

Reply via email to