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

Unified Diff: base/command_line.h

Issue 196009: Linux: set the process title (that shows in "ps" etc.) of renderers correctly when using the zygote. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/base.gyp ('k') | base/command_line.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/command_line.h
===================================================================
--- base/command_line.h (revision 25770)
+++ base/command_line.h (working copy)
@@ -55,6 +55,16 @@
static void Init(int argc, const char* const* argv);
static void Init(const std::vector<std::string>& argv);
+#if defined(OS_LINUX) || defined(OS_FREEBSD)
+ // Sets the current process' arguments that show in "ps" etc. to those
+ // in |current_process_commandline_|. Used by the zygote host so that
+ // renderers show up with --type=renderer.
+ static void SetProcTitle();
+
+ // Needed to support SetProcTitle() on Linux. Should be called by main().
+ static void SetTrueArgv(char** argv);
+#endif
+
// Destroys the current process CommandLine singleton. This is necessary if
// you want to reset the base library to its initial state (for example in an
// outer library that needs to be able to terminate, and be re-initialized).
« no previous file with comments | « base/base.gyp ('k') | base/command_line.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698