提交 7edc079d 编写于 作者: W wonghiu45

chang pid 1 to self for initSysAdj

Signed-off-by: Nwonghiu45 <huangxiao35@huawei.com>
上级 46e9169b
......@@ -308,7 +308,7 @@ static void InitPostHook(const HOOK_INFO *hookInfo, void *executionContext, int
static void InitSysAdj(void)
{
const char* path = "/proc/1/oom_score_adj";
const char* path = "/proc/self/oom_score_adj";
const char* content = "-1000";
int fd = open(path, O_RDWR);
if (fd == -1) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册