Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Side by Side Diff: base/process/kill_posix.cc

Issue 1543293004: Switch to standard integer types in base/process/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ssize_t Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « base/process/kill.h ('k') | base/process/kill_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/process/kill.h" 5 #include "base/process/kill.h"
6 6
7 #include <errno.h> 7 #include <errno.h>
8 #include <signal.h> 8 #include <signal.h>
9 #include <sys/types.h> 9 #include <sys/types.h>
10 #include <sys/wait.h> 10 #include <sys/wait.h>
11 #include <unistd.h> 11 #include <unistd.h>
12 12
13 #include "base/files/file_util.h" 13 #include "base/files/file_util.h"
14 #include "base/files/scoped_file.h" 14 #include "base/files/scoped_file.h"
15 #include "base/logging.h" 15 #include "base/logging.h"
16 #include "base/macros.h"
16 #include "base/posix/eintr_wrapper.h" 17 #include "base/posix/eintr_wrapper.h"
17 #include "base/process/process_iterator.h" 18 #include "base/process/process_iterator.h"
18 #include "base/synchronization/waitable_event.h" 19 #include "base/synchronization/waitable_event.h"
19 #include "base/threading/platform_thread.h" 20 #include "base/threading/platform_thread.h"
21 #include "build/build_config.h"
20 22
21 namespace base { 23 namespace base {
22 24
23 namespace { 25 namespace {
24 26
25 TerminationStatus GetTerminationStatusImpl(ProcessHandle handle, 27 TerminationStatus GetTerminationStatusImpl(ProcessHandle handle,
26 bool can_block, 28 bool can_block,
27 int* exit_code) { 29 int* exit_code) {
28 int status = 0; 30 int status = 0;
29 const pid_t result = HANDLE_EINTR(waitpid(handle, &status, 31 const pid_t result = HANDLE_EINTR(waitpid(handle, &status,
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 return; 223 return;
222 224
223 BackgroundReaper* reaper = new BackgroundReaper(pid, 0); 225 BackgroundReaper* reaper = new BackgroundReaper(pid, 0);
224 PlatformThread::CreateNonJoinable(0, reaper); 226 PlatformThread::CreateNonJoinable(0, reaper);
225 } 227 }
226 228
227 #endif // !defined(OS_MACOSX) 229 #endif // !defined(OS_MACOSX)
228 #endif // !defined(OS_NACL_NONSFI) 230 #endif // !defined(OS_NACL_NONSFI)
229 231
230 } // namespace base 232 } // namespace base
OLDNEW
« no previous file with comments | « base/process/kill.h ('k') | base/process/kill_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698