So the right thing to do when writing to oom_score is: - Try oom_score_adj first if it doesn't exist, silently fallback to oom_adj - Don't fail if the file doesn't exist - Don't fail if write gets you EACCESS - Fail for all other return values
So the right thing to do when writing to oom_score is:
- Try oom_score_adj first if it doesn't exist, silently fallback to oom_adj
- Don't fail if the file doesn't exist
- Don't fail if write gets you EACCESS
- Fail for all other return values