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

Unified Diff: chrome/plugin/plugin_main.cc

Issue 490028: Linux: use readlink() and prctl() in SetProcTitle() to fix "exe" showing in process listings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 12 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
« base/command_line.cc ('K') | « 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 35439)
+++ chrome/plugin/plugin_main.cc (working copy)
@@ -62,7 +62,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();
« base/command_line.cc ('K') | « base/setproctitle_linux.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698