summaryrefslogtreecommitdiffstats
path: root/base/process_util_posix.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 17:01:36 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-03 17:01:36 +0000
commit6c6cc80b2463e75d94ebb0d392ccf54761374a64 (patch)
tree027e484cadfabddc197efe4ccab1567bc6cb9b0f /base/process_util_posix.cc
parentded5e4e7e6bc7c7d4d16223929dbb0f69fc8add0 (diff)
downloadchromium_src-6c6cc80b2463e75d94ebb0d392ccf54761374a64.zip
chromium_src-6c6cc80b2463e75d94ebb0d392ccf54761374a64.tar.gz
chromium_src-6c6cc80b2463e75d94ebb0d392ccf54761374a64.tar.bz2
Make OpenProcessHandle report an error when it couldn't open the handle.
One more step to land http://codereview.chromium.org/54003 (chrome_process_util). Review URL: http://codereview.chromium.org/62004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13086 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_posix.cc')
-rw-r--r--base/process_util_posix.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 439b806..d55f65d 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -35,10 +35,11 @@ ProcessHandle GetCurrentProcessHandle() {
return GetCurrentProcId();
}
-ProcessHandle OpenProcessHandle(ProcessId pid) {
+bool OpenProcessHandle(ProcessId pid, ProcessHandle* handle) {
// On Posix platforms, process handles are the same as PIDs, so we
// don't need to do anything.
- return pid;
+ *handle = pid;
+ return true;
}
void CloseProcessHandle(ProcessHandle process) {