Loading logd/main.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include <unistd.h> #include <cutils/properties.h> #include <cutils/sched_policy.h> #include "private/android_filesystem_config.h" #include "CommandListener.h" Loading Loading @@ -69,6 +70,10 @@ static int drop_privs() { struct sched_param param; memset(¶m, 0, sizeof(param)); if (set_sched_policy(0, SP_BACKGROUND) < 0) { return -1; } if (sched_setscheduler((pid_t) 0, SCHED_BATCH, ¶m) < 0) { return -1; } Loading Loading
logd/main.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,7 @@ #include <unistd.h> #include <cutils/properties.h> #include <cutils/sched_policy.h> #include "private/android_filesystem_config.h" #include "CommandListener.h" Loading Loading @@ -69,6 +70,10 @@ static int drop_privs() { struct sched_param param; memset(¶m, 0, sizeof(param)); if (set_sched_policy(0, SP_BACKGROUND) < 0) { return -1; } if (sched_setscheduler((pid_t) 0, SCHED_BATCH, ¶m) < 0) { return -1; } Loading