diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 04:07:33 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-04 04:07:33 +0000 |
commit | da11a4be3902edcdfb5c2f29925e068ebce36a67 (patch) | |
tree | 87e1a0f45234d74bb16a3ac31a34d8f97ce2a9a3 /base | |
parent | b862327fcecf4e282bcaf033354ba9073d9777e4 (diff) | |
download | chromium_src-da11a4be3902edcdfb5c2f29925e068ebce36a67.zip chromium_src-da11a4be3902edcdfb5c2f29925e068ebce36a67.tar.gz chromium_src-da11a4be3902edcdfb5c2f29925e068ebce36a67.tar.bz2 |
Add support for getting the real process id from within the suid sandbox. The browser processes gets the real process ids, so they look correct in the task manager. When it asks the zygote to reap a process, we use the process ids internal to the sandbox.
While we are at it, reap the sandbox process after it clones the zygote and figure out zygote's actual process id. Save the actual process id rather than that of the sandbox.
BUG=20012,20714,23072
TEST=Process IDs for renderers should be correct in the task manager and you should be able to use the end process button to kill them.
Review URL: http://codereview.chromium.org/262020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/linux_util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/linux_util.h b/base/linux_util.h index 657edda..1da519e 100644 --- a/base/linux_util.h +++ b/base/linux_util.h @@ -12,6 +12,8 @@ namespace base { +static const char kFindInodeSwitch[] = "--find-inode"; + // Makes a copy of |pixels| with the ordering changed from BGRA to RGBA. // The caller is responsible for free()ing the data. If |stride| is 0, // it's assumed to be 4 * |width|. |