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-01 09:19:37 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-01 09:19:37 +0000
commit43cf325be09379594dd96e0b35146585cdfd6a34 (patch)
tree46401fd401988a049d3b12bea27132b7889b1986 /base/process_util_posix.cc
parent744121a2bf4ccf78a95cd816e696c0fc7f2551a5 (diff)
downloadchromium_src-43cf325be09379594dd96e0b35146585cdfd6a34.zip
chromium_src-43cf325be09379594dd96e0b35146585cdfd6a34.tar.gz
chromium_src-43cf325be09379594dd96e0b35146585cdfd6a34.tar.bz2
Use portable typedef for PIDs (process IDs).
This is a preparation to land http://codereview.chromium.org/54003, which replaces chrome_process_filter with more portable chrome_process_util. Review URL: http://codereview.chromium.org/57062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12948 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/process_util_posix.cc')
-rw-r--r--base/process_util_posix.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 37888d5..439b806 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -27,7 +27,7 @@ const int kMicrosecondsPerSecond = 1000000;
namespace base {
-int GetCurrentProcId() {
+ProcessId GetCurrentProcId() {
return getpid();
}
@@ -35,7 +35,7 @@ ProcessHandle GetCurrentProcessHandle() {
return GetCurrentProcId();
}
-ProcessHandle OpenProcessHandle(int pid) {
+ProcessHandle OpenProcessHandle(ProcessId pid) {
// On Posix platforms, process handles are the same as PIDs, so we
// don't need to do anything.
return pid;
@@ -46,7 +46,7 @@ void CloseProcessHandle(ProcessHandle process) {
return;
}
-int GetProcId(ProcessHandle process) {
+ProcessId GetProcId(ProcessHandle process) {
return process;
}