| Index: base/process/process.h
|
| diff --git a/base/process/process.h b/base/process/process.h
|
| index a834a29acd1ca98a380f5a526c5e4c46b1952e2b..41eef10aed475f8972dbb16a6a7938a97e410b75 100644
|
| --- a/base/process/process.h
|
| +++ b/base/process/process.h
|
| @@ -2,8 +2,8 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#ifndef BASE_PROCESS_PROCESS_PROCESS_H_
|
| -#define BASE_PROCESS_PROCESS_PROCESS_H_
|
| +#ifndef BASE_PROCESS_PROCESS_H_
|
| +#define BASE_PROCESS_PROCESS_H_
|
|
|
| #include "base/base_export.h"
|
| #include "base/basictypes.h"
|
| @@ -92,9 +92,11 @@ class BASE_EXPORT Process {
|
| void Close();
|
|
|
| // Terminates the process with extreme prejudice. The given |result_code| will
|
| - // be the exit code of the process.
|
| + // be the exit code of the process. If |wait| is true, this method will wait
|
| + // for up to one minute for the process to actually terminate.
|
| + // Returns true if the process terminates within the allowed time.
|
| // NOTE: On POSIX |result_code| is ignored.
|
| - void Terminate(int result_code);
|
| + bool Terminate(int result_code, bool wait) const;
|
|
|
| // Waits for the process to exit. Returns true on success.
|
| // On POSIX, if the process has been signaled then |exit_code| is set to -1.
|
| @@ -130,4 +132,4 @@ class BASE_EXPORT Process {
|
|
|
| } // namespace base
|
|
|
| -#endif // BASE_PROCESS_PROCESS_PROCESS_H_
|
| +#endif // BASE_PROCESS_PROCESS_H_
|
|
|