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

Unified Diff: base/process/kill.h

Issue 248903002: Fix LocalTestServer shutdown on Windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/process/kill_win.cc » ('j') | base/process/kill_win.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/kill.h
diff --git a/base/process/kill.h b/base/process/kill.h
index de72d7a8dca6936fa4034b6237da2107d2db0a0a..7c4cc718e84a3a1849c945f266b0ddd1e4a044b9 100644
--- a/base/process/kill.h
+++ b/base/process/kill.h
@@ -50,6 +50,14 @@ BASE_EXPORT bool KillProcesses(const FilePath::StringType& executable_name,
// Returns true if this is successful, false otherwise.
BASE_EXPORT bool KillProcess(ProcessHandle process, int exit_code, bool wait);
+#if defined(OS_WIN)
+// Attempts to kill all processes associated with the job identified by the
+// given job handle, giving them the specified exit code. If |wait| is true,
+// wait for the job to be actually terminated before returning.
+// Returns true if this is successful, false otherwise.
+BASE_EXPORT bool KillJob(HANDLE job, int exit_code, bool wait);
+#endif // defined(OS_WIN)
+
#if defined(OS_POSIX)
// Attempts to kill the process group identified by |process_group_id|. Returns
// true on success.
« no previous file with comments | « no previous file | base/process/kill_win.cc » ('j') | base/process/kill_win.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698