未验证 提交 dece8eb0 编写于 作者: O openharmony_ci 提交者: Gitee

!1298 chang pid 1 to self for initSysAdj

Merge pull request !1298 from wonghiu45/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册