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()) { |