summaryrefslogtreecommitdiffstats
path: root/logd/LogReader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logd/LogReader.cpp')
-rw-r--r--logd/LogReader.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/logd/LogReader.cpp b/logd/LogReader.cpp
index f7df275..745e847 100644
--- a/logd/LogReader.cpp
+++ b/logd/LogReader.cpp
@@ -37,7 +37,11 @@ void LogReader::notifyNewLog() {
}
bool LogReader::onDataAvailable(SocketClient *cli) {
- prctl(PR_SET_NAME, "logd.reader");
+ static bool name_set;
+ if (!name_set) {
+ prctl(PR_SET_NAME, "logd.reader");
+ name_set = true;
+ }
char buffer[255];