Merge "Add a comment to explain how errno is set" am: b488db911c
Original change: https://android-review.googlesource.com/c/platform/system/core/+/2052049 Change-Id: I1eaf6244fa6f77d93bfdf690f2f3ac1af17dd73a Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
ee7752efa1
1 changed files with 3 additions and 0 deletions
|
|
@ -215,6 +215,9 @@ bool SetAttributeAction::ExecuteForTask(int tid) const {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// The PLOG() statement below uses the error code stored in `errno` by
|
||||||
|
// WriteStringToFile() because access() only overwrites `errno` if it fails
|
||||||
|
// and because this code is only reached if the access() function returns 0.
|
||||||
PLOG(ERROR) << "Failed to write '" << value_ << "' to " << path;
|
PLOG(ERROR) << "Failed to write '" << value_ << "' to " << path;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue