diff options
Diffstat (limited to 'chrome/browser/memory_details_linux.cc')
-rw-r--r-- | chrome/browser/memory_details_linux.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/memory_details_linux.cc b/chrome/browser/memory_details_linux.cc index 1909eec..8ba1863 100644 --- a/chrome/browser/memory_details_linux.cc +++ b/chrome/browser/memory_details_linux.cc @@ -103,7 +103,8 @@ static bool GetProcesses(std::vector<Process>* processes) { continue; const ssize_t len = HANDLE_EINTR(read(fd, buf, sizeof(buf) - 1)); - HANDLE_EINTR(close(fd)); + if (HANDLE_EINTR(close(fd)) < 0) + PLOG(ERROR) << "close"; if (len < 1) continue; buf[len] = 0; |