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

Commit 40addf79 authored by Tom Cherry's avatar Tom Cherry
Browse files

logd: remove unnecessary static

ThreadFunction() will only be entered once, so there's no worry that
we'll call prctl() multiple times.

Test: logging unit tests
Change-Id: Id2a02c2ab807f1565e3d625424e040481b3aa1a3
parent a269c7c3
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -45,11 +45,7 @@ bool LogListener::StartListener() {
}

void LogListener::ThreadFunction() {
    static bool name_set;
    if (!name_set) {
    prctl(PR_SET_NAME, "logd.writer");
        name_set = true;
    }

    while (true) {
        HandleData();