Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6695)

Unified Diff: chrome/plugin/plugin_main.cc

Issue 523106: Merge 35441 - Linux: use readlink() and prctl() in SetProcTitle() to fix "exe... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/249/src/
Patch Set: Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/setproctitle_linux.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/plugin/plugin_main.cc
===================================================================
--- chrome/plugin/plugin_main.cc (revision 35659)
+++ chrome/plugin/plugin_main.cc (working copy)
@@ -98,7 +98,12 @@
const CommandLine& parsed_command_line = parameters.command_line_;
-#if defined(OS_WIN)
+#if defined(OS_LINUX)
+ // On Linux we exec ourselves from /proc/self/exe, but that makes the
+ // process name that shows up in "ps" etc. for plugins show as "exe"
+ // instead of "chrome" or something reasonable. Try to fix it.
+ CommandLine::SetProcTitle();
+#elif defined(OS_WIN)
sandbox::TargetServices* target_services =
parameters.sandbox_info_.TargetServices();
« no previous file with comments | « base/setproctitle_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698