diff options
author | Treehugger Robot <treehugger-gerrit@google.com> | 2016-07-13 19:50:52 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2016-07-13 19:50:52 +0000 |
commit | 8ee58b3b4eb09d5208a2c4c2b60be7d0ac99b3b8 (patch) | |
tree | 6c6ee5364490cd6041aba08cd9bf765edd78b85e /cmds/app_process/app_main.cpp | |
parent | ee4c8fb9ebfd014fc6bc0fd2cc24ada2c078455e (diff) | |
parent | 342c7dcd022746c25dc202230a6a9390c403062f (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.cpp | 5 |
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) { |