tombstoned: silence spurious error messages. am: 8498016b81 am: 8fb50dc76c
am: 44877b9c29
Change-Id: I32f8ec5c1335589ba5999bb0377c7ad6b6d4d1e4
This commit is contained in:
commit
bea428806a
1 changed files with 7 additions and 1 deletions
|
|
@ -85,7 +85,13 @@ static void find_oldest_tombstone() {
|
|||
std::string path = android::base::StringPrintf("%stombstone_%02zu", kTombstoneDirectory, i);
|
||||
struct stat st;
|
||||
if (stat(path.c_str(), &st) != 0) {
|
||||
PLOG(ERROR) << "failed to stat " << path;
|
||||
if (errno == ENOENT) {
|
||||
oldest_tombstone = i;
|
||||
break;
|
||||
} else {
|
||||
PLOG(ERROR) << "failed to stat " << path;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
if (st.st_mtime < oldest_time) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue