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
This commit is contained in:
parent
a269c7c3d1
commit
40addf79d4
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
prctl(PR_SET_NAME, "logd.writer");
|
||||
|
||||
while (true) {
|
||||
HandleData();
|
||||
|
|
Loading…
Reference in a new issue