From de2fa03c3139559a8d43d9f93206494b156df11b Mon Sep 17 00:00:00 2001 From: Martin Michelsen Date: Sun, 28 Jul 2024 11:58:00 -0700 Subject: [PATCH] fix scope in pid_is_zombie --- src/Process.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Process.cc b/src/Process.cc index 6a1c444..f458da5 100644 --- a/src/Process.cc +++ b/src/Process.cc @@ -138,7 +138,7 @@ bool pid_is_zombie(pid_t pid) { try { string filename = string_printf("/proc/%d/status", pid); scoped_fd fd(filename, O_RDONLY); - ssize_t bytes_read = read(fd, status_data, 2047); + ssize_t bytes_read = ::read(fd, status_data, 2047); if (bytes_read < 0) { throw runtime_error("can\'t read stat file for pid " + to_string(pid)); }