summaryrefslogtreecommitdiff
path: root/cmds/app_process/app_main.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2016-07-13 19:50:52 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2016-07-13 19:50:52 +0000
commit8ee58b3b4eb09d5208a2c4c2b60be7d0ac99b3b8 (patch)
tree6c6ee5364490cd6041aba08cd9bf765edd78b85e /cmds/app_process/app_main.cpp
parentee4c8fb9ebfd014fc6bc0fd2cc24ada2c078455e (diff)
parent342c7dcd022746c25dc202230a6a9390c403062f (diff)
Merge "Remove calls to set_process_name."
Diffstat (limited to 'cmds/app_process/app_main.cpp')
-rw-r--r--cmds/app_process/app_main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmds/app_process/app_main.cpp b/cmds/app_process/app_main.cpp
index 2e023825a219..2093579bb274 100644
--- a/cmds/app_process/app_main.cpp
+++ b/cmds/app_process/app_main.cpp
@@ -299,8 +299,9 @@ int main(int argc, char* const argv[])
}
if (!niceName.isEmpty()) {
- runtime.setArgv0(niceName.string());
- set_process_name(niceName.string());
+ const char* procName = niceName.string();
+ pthread_setname_np(pthread_self(), procName);
+ runtime.setArgv0(procName);
}
if (zygote) {