diff options
author | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 10:33:53 +0000 |
---|---|---|
committer | deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 10:33:53 +0000 |
commit | cd02b22af5e2cb7eeb5c977a3787c4d3d740a7e4 (patch) | |
tree | fec283cdcfa0af620f63ab699824f45796d99ba8 /chrome/renderer | |
parent | b44d5cc48e86d5def75da6d5d0d295bb93e7a11d (diff) | |
download | chromium_src-cd02b22af5e2cb7eeb5c977a3787c4d3d740a7e4.zip chromium_src-cd02b22af5e2cb7eeb5c977a3787c4d3d740a7e4.tar.gz chromium_src-cd02b22af5e2cb7eeb5c977a3787c4d3d740a7e4.tar.bz2 |
Revert processing naming change, which breaks UI tests iterating over the
chrome processes by name.
Reverting:
commit b60e93b5ccb3bf0eefbc5b15b74b5a8be30aa589
Author: deanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Mon Jun 15 09:59:38 2009 +0000
Set process name on Linux
This uses PR_SET_NAME to set the process name. It was useful in looking at
memory numbers with the zygote patches. PR_SET_NAME is only avalaible in
kernels >= 2.6.9 according to the man page:
> PR_SET_NAME (since Linux 2.6.9)
> Set the process name for the calling process, using the value in
> the location pointed to by (char *) arg2. The name can be up to
> 16 bytes long, and should be null terminated if it contains
> fewer bytes.
shenki@moya ~/src/chromium/src :process-name
$ ps --forest
PID TTY TIME CMD
5581 pts/2 00:00:00 bash
9559 pts/2 00:00:02 \_ Chromium_Browse
9573 pts/2 00:00:00 | \_ Chromium_Render
9581 pts/2 00:00:02 | \_ Chromium_Render
9584 pts/2 00:00:00 | \_ Chromium_Render
Patch by Joel Stanley.
Review URL: http://codereview.chromium.org/118060
git-svn-id: svn://chrome-svn/chrome/trunk/src@18376 0039d316-1c4b-4281-b951-d872f2087c98
Review URL: http://codereview.chromium.org/126119
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18380 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/renderer_main.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/chrome/renderer/renderer_main.cc b/chrome/renderer/renderer_main.cc index 7c40767..fc4d291 100644 --- a/chrome/renderer/renderer_main.cc +++ b/chrome/renderer/renderer_main.cc @@ -25,10 +25,6 @@ #include "grit/chromium_strings.h" #include "grit/generated_resources.h" -#if defined(OS_LINUX) -#include <sys/prctl.h> -#endif - // This function provides some ways to test crash and assertion handling // behavior of the renderer. static void HandleRendererErrorTestParameters(const CommandLine& command_line) { @@ -83,11 +79,6 @@ int RendererMain(const MainFunctionParams& parameters) { MessageLoopForIO main_message_loop; std::wstring app_name = chrome::kBrowserAppName; PlatformThread::SetName(WideToASCII(app_name + L"_RendererMain").c_str()); -#if defined(OS_LINUX) - // Set the process name so it is easier to distinguish this process from - // others. The process name will be trimmed to 15 characters. - prctl(PR_SET_NAME, WideToASCII(app_name + L"_Renderer").c_str(), 0, 0, 0); -#endif // Initialize the SystemMonitor base::SystemMonitor::Start(); |