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

Side by Side Diff: base/process/kill.h

Issue 862133002: Update from https://crrev.com/312398 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 months 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
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 // This file contains routines to kill processes and get the exit code and 5 // This file contains routines to kill processes and get the exit code and
6 // termination status. 6 // termination status.
7 7
8 #ifndef BASE_PROCESS_KILL_H_ 8 #ifndef BASE_PROCESS_KILL_H_
9 #define BASE_PROCESS_KILL_H_ 9 #define BASE_PROCESS_KILL_H_
10 10
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 // On Linux this method does not block the calling thread. 147 // On Linux this method does not block the calling thread.
148 // On OS X this method may block for up to 2 seconds. 148 // On OS X this method may block for up to 2 seconds.
149 // 149 //
150 // NOTE: The process must have been opened with the PROCESS_TERMINATE and 150 // NOTE: The process must have been opened with the PROCESS_TERMINATE and
151 // SYNCHRONIZE permissions. 151 // SYNCHRONIZE permissions.
152 // 152 //
153 BASE_EXPORT void EnsureProcessTerminated(Process process); 153 BASE_EXPORT void EnsureProcessTerminated(Process process);
154 154
155 #if defined(OS_POSIX) && !defined(OS_MACOSX) 155 #if defined(OS_POSIX) && !defined(OS_MACOSX)
156 // The nicer version of EnsureProcessTerminated() that is patient and will 156 // The nicer version of EnsureProcessTerminated() that is patient and will
157 // wait for |process_handle| to finish and then reap it. 157 // wait for |pid| to finish and then reap it.
158 BASE_EXPORT void EnsureProcessGetsReaped(ProcessHandle process_handle); 158 BASE_EXPORT void EnsureProcessGetsReaped(ProcessId pid);
159 #endif 159 #endif
160 160
161 } // namespace base 161 } // namespace base
162 162
163 #endif // BASE_PROCESS_KILL_H_ 163 #endif // BASE_PROCESS_KILL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698