Skip to content

Commit

Permalink
fix scope in pid_is_zombie
Browse files Browse the repository at this point in the history
  • Loading branch information
fuzziqersoftware committed Jul 28, 2024
1 parent 1e2adf6 commit de2fa03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit de2fa03

Please sign in to comment.