Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2349099b authored by Akilesh Kailash's avatar Akilesh Kailash Committed by Automerger Merge Worker
Browse files

Merge "snapuserd: Set taskprofile OtaProfiles" am: 33081c0f

parents 1c801c21 33081c0f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ service snapuserd /system/bin/snapuserd
    disabled
    user root
    group root system
    task_profiles OtaProfiles
    seclabel u:r:snapuserd:s0

service snapuserd_proxy /system/bin/snapuserd -socket-handoff
+5 −0
Original line number Diff line number Diff line
@@ -253,6 +253,11 @@ bool Worker::Init() {

bool Worker::RunThread() {
    SNAP_LOG(INFO) << "Processing snapshot I/O requests....";

    if (setpriority(PRIO_PROCESS, gettid(), kNiceValueForMergeThreads)) {
        SNAP_PLOG(ERROR) << "Failed to set priority for TID: " << gettid();
    }

    // Start serving IO
    while (true) {
        if (!ProcessIORequest()) {