summaryrefslogtreecommitdiffstats
path: root/base/process_util_mac.mm
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 16:45:26 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 16:45:26 +0000
commit0acc6cef784e119873b4bb91f55d92012e627d0c (patch)
tree5c2b3df3467f60b9c1003638835e086b12976c69 /base/process_util_mac.mm
parentb547666db3afc16f7749db7a71255fbf4bcb7af4 (diff)
downloadchromium_src-0acc6cef784e119873b4bb91f55d92012e627d0c.zip
chromium_src-0acc6cef784e119873b4bb91f55d92012e627d0c.tar.gz
chromium_src-0acc6cef784e119873b4bb91f55d92012e627d0c.tar.bz2
The PPID is in kp_eproc, not kp_proc. (The field we were previously looking at was always zero.)
Review URL: http://codereview.chromium.org/96009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14316 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_mac.mm')
-rw-r--r--base/process_util_mac.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/process_util_mac.mm b/base/process_util_mac.mm
index 98714c8..f489bd0 100644
--- a/base/process_util_mac.mm
+++ b/base/process_util_mac.mm
@@ -207,7 +207,7 @@ bool NamedProcessIterator::CheckForNextProcess() {
// Check the name
if (executable_name_utf8 == exec_name) {
entry_.pid = kinfo->kp_proc.p_pid;
- entry_.ppid = kinfo->kp_proc.p_oppid;
+ entry_.ppid = kinfo->kp_eproc.e_ppid;
base::strlcpy(entry_.szExeFile, exec_name.c_str(),
sizeof(entry_.szExeFile));
// Start w/ the next entry next time through