summaryrefslogtreecommitdiffstats
path: root/chrome/common/process_watcher_posix.cc
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 15:09:55 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 15:09:55 +0000
commita4dc33f2e485e586cc3fb03142c2800249fe9ced (patch)
tree0ea6b3a6fa9ee5dfcec478ca986ead1f8014bec9 /chrome/common/process_watcher_posix.cc
parenta8c085ff7b9dfc2ae719e279363d37a24918f067 (diff)
downloadchromium_src-a4dc33f2e485e586cc3fb03142c2800249fe9ced.zip
chromium_src-a4dc33f2e485e586cc3fb03142c2800249fe9ced.tar.gz
chromium_src-a4dc33f2e485e586cc3fb03142c2800249fe9ced.tar.bz2
Cleanup: change PIDs to base::ProcessId (or pid_t, as appropriate).
We probably want to discourage the use of ints for PIDs. This is a start; there are many other places where we should fix this. BUG=25272 TEST=none Review URL: http://codereview.chromium.org/300010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29511 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/process_watcher_posix.cc')
-rw-r--r--chrome/common/process_watcher_posix.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/common/process_watcher_posix.cc b/chrome/common/process_watcher_posix.cc
index 0991f0cb..8f09101 100644
--- a/chrome/common/process_watcher_posix.cc
+++ b/chrome/common/process_watcher_posix.cc
@@ -15,7 +15,7 @@
// Return true if the given child is dead. This will also reap the process.
// Doesn't block.
static bool IsChildDead(pid_t child) {
- const int result = HANDLE_EINTR(waitpid(child, NULL, WNOHANG));
+ const pid_t result = HANDLE_EINTR(waitpid(child, NULL, WNOHANG));
if (result == -1) {
NOTREACHED();
} else if (result > 0) {