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

Unified Diff: handler/handler_main.cc

Issue 1505423002: win: Set shutdown order to make the handler shutdown as late as possible (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: plog 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: handler/handler_main.cc
diff --git a/handler/handler_main.cc b/handler/handler_main.cc
index 16855fa82642e9ef92605ec600e35d4195a6cdb5..4dfd19bd424305b4ce7ebcf31572bba84e4be1ff 100644
--- a/handler/handler_main.cc
+++ b/handler/handler_main.cc
@@ -337,6 +337,10 @@ int HandlerMain(int argc, char* argv[]) {
reset_sigterm.reset(&old_sa);
}
#elif defined(OS_WIN)
+ // Shut down as late as possible relative to programs we're watching.
+ if (!SetProcessShutdownParameters(0x100, SHUTDOWN_NORETRY))
+ PLOG(ERROR) << "SetProcessShutdownParameters";
+
ExceptionHandlerServer exception_handler_server(!options.pipe_name.empty());
if (!options.pipe_name.empty()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698