diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/process_util.h | 4 | ||||
-rw-r--r-- | base/process_util_posix.cc | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/base/process_util.h b/base/process_util.h index 89e6346..caf39e8 100644 --- a/base/process_util.h +++ b/base/process_util.h @@ -37,8 +37,8 @@ typedef IO_COUNTERS IoCounters; #elif defined(OS_POSIX) // TODO(port): we should not rely on a Win32 structure. struct ProcessEntry { - int pid; - int ppid; + base::ProcessId pid; + base::ProcessId ppid; char szExeFile[NAME_MAX + 1]; }; diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc index 61ecb7e..d365d01 100644 --- a/base/process_util_posix.cc +++ b/base/process_util_posix.cc @@ -77,7 +77,7 @@ bool KillProcess(ProcessHandle process_id, int exit_code, bool wait) { // The process may not end immediately due to pending I/O bool exited = false; while (tries-- > 0) { - int pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG)); + pid_t pid = HANDLE_EINTR(waitpid(process_id, NULL, WNOHANG)); if (pid == process_id) { exited = true; break; @@ -330,7 +330,7 @@ void RaiseProcessToHighPriority() { bool DidProcessCrash(bool* child_exited, ProcessHandle handle) { int status; - const int result = HANDLE_EINTR(waitpid(handle, &status, WNOHANG)); + const pid_t result = HANDLE_EINTR(waitpid(handle, &status, WNOHANG)); if (result == -1) { PLOG(ERROR) << "waitpid(" << handle << ")"; if (child_exited) |