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

Commit 742388aa authored by Suren Baghdasaryan's avatar Suren Baghdasaryan Committed by android-build-merger
Browse files

Merge "Suppress error log when timerslack_ns write fails for already dead...

Merge "Suppress error log when timerslack_ns write fails for already dead process" am: f5b7361c am: 4976d62a
am: b4e53daa

Change-Id: I6d7d897f35702580b86b1a7d81f4d91739f00c5a
parents 84726173 b4e53daa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -90,6 +90,10 @@ bool SetTimerSlackAction::ExecuteForTask(int tid) const {
    if (sys_supports_timerslack) {
        auto file = StringPrintf("/proc/%d/timerslack_ns", tid);
        if (!WriteStringToFile(std::to_string(slack_), file)) {
            if (errno == ENOENT) {
                // This happens when process is already dead
                return true;
            }
            PLOG(ERROR) << "set_timerslack_ns write failed";
        }
    }