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

Unified Diff: base/process/process_posix.cc

Issue 2629623003: Win should call ::TerminateProcess to exit a renderer process (Closed)
Patch Set: temp Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/process/process.h ('k') | base/process/process_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_posix.cc
diff --git a/base/process/process_posix.cc b/base/process/process_posix.cc
index 55b7ac90e2952de74c28408c90163b727ca7cdc5..689252b105cd5668b3cd0843a7228d5e1ed89d2b 100644
--- a/base/process/process_posix.cc
+++ b/base/process/process_posix.cc
@@ -350,6 +350,10 @@ bool Process::Terminate(int exit_code, bool wait) const {
}
#endif // !defined(OS_NACL_NONSFI)
+void Process::TerminateImmediately(int exit_code) const {
+ _exit(0);
Primiano Tucci (use gerrit) 2017/01/13 17:08:17 two things here: 1) s/0/exit_code/ :) 2) note that
Nico 2017/01/13 19:24:59 Agreed, 1 or 2 seem more appropriate. 1 seems a ti
+}
+
bool Process::WaitForExit(int* exit_code) const {
return WaitForExitWithTimeout(TimeDelta::Max(), exit_code);
}
« no previous file with comments | « base/process/process.h ('k') | base/process/process_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698