Skip to content

Commit de2fa03

Browse files
fix scope in pid_is_zombie
1 parent 1e2adf6 commit de2fa03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Process.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ bool pid_is_zombie(pid_t pid) {
138138
try {
139139
string filename = string_printf("/proc/%d/status", pid);
140140
scoped_fd fd(filename, O_RDONLY);
141-
ssize_t bytes_read = read(fd, status_data, 2047);
141+
ssize_t bytes_read = ::read(fd, status_data, 2047);
142142
if (bytes_read < 0) {
143143
throw runtime_error("can\'t read stat file for pid " + to_string(pid));
144144
}

0 commit comments

Comments
 (0)