summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
diff options
context:
space:
mode:
authorSandeep Patil <sspatil@google.com>2019-04-09 12:31:36 -0700
committerSandeep Patil <sspatil@google.com>2019-04-09 12:31:36 -0700
commitba98e0e85709276a5bdf2f3812eaed30bb754e95 (patch)
treee3a2442e6e4fa17b172aa95eb519450a057bcd5f /base/errors_unix.cpp
parente9cef73e1721df8959f5e85608bf7588fc1accd4 (diff)
libmeminfo/procrank: Ignore failures when process disappears.
procrank currently fails if a process gets killed while it is reading the stats. This behavior is a regression from the previous version of procrank and is often undesired. Change procrank to silently ignore the process if it detects that it had been killed while reading the stats. If the process is still around, then print a warning about it and continue to read stats for other processes in the system. Bug: 130177765 Test: Tested by deliberately killing specific process in ProcessRecord() constructor Change-Id: I701808c3226bb9b3a350ccf8e67fb29b59b0d4e0 Signed-off-by: Sandeep Patil <sspatil@google.com>
Diffstat (limited to 'base/errors_unix.cpp')
0 files changed, 0 insertions, 0 deletions