diff options
| author | Akilesh Kailash <akailash@google.com> | 2022-06-02 08:00:39 +0000 |
|---|---|---|
| committer | Akilesh Kailash <akailash@google.com> | 2022-06-02 21:19:46 +0000 |
| commit | 1a2f870cb3012af551d05edbe460e1056ef24d12 (patch) | |
| tree | 02d05249e1c0b0c4fb6acfe36c85130cd4b74f8a /trusty/coverage/coverage.cpp | |
| parent | 2cf162748fef8fa077e582f9f25eef45884ce9b8 (diff) | |
init: Set oom_score_adj to snapuserd process
When a process is started as a native service,
oom_score_adj is set to -1000 so that processes
are unkillable by lmkd.
During boot, snapuserd process is not started as a service;
hence, we need to set the oom_score_adj explicitly else in
the event of low memory situation, lmkd can kill the
process thereby device can never boot.
Bug: 234691483
Test: th and OTA on Pixel
Ignore-AOSP-First: cherry-pick from AOSP
Signed-off-by: Akilesh Kailash <akailash@google.com>
Change-Id: Ic2c85aa470522b4bc847a16b4f5cebfc528ed3cf
Diffstat (limited to 'trusty/coverage/coverage.cpp')
0 files changed, 0 insertions, 0 deletions
