diff options
author | Chloe Calvarin <ccalvarin@google.com> | 2016-12-13 19:48:34 +0000 |
---|---|---|
committer | John Cater <jcater@google.com> | 2016-12-13 21:05:37 +0000 |
commit | eaa3be7fe4305ec617bdc4874c5bca926639d04f (patch) | |
tree | d7d71e86f8fffd7f745c34b264a4486dfd205e43 /src/main/cpp/startup_options.h | |
parent | 8a32c3758a28b9c8624422a364a74987315143da (diff) |
Record correct exit code for uncaught exceptions in async threads.
Async threads are divorced from the server's error-reporting mechanism. In the event
of a server shutdown originating in an async-thread, write the exit code to a file that
can be read by the client.
--
PiperOrigin-RevId: 141920284
MOS_MIGRATED_REVID=141920284
Diffstat (limited to 'src/main/cpp/startup_options.h')
-rw-r--r-- | src/main/cpp/startup_options.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/cpp/startup_options.h b/src/main/cpp/startup_options.h index 7020c04883..b36a70a52c 100644 --- a/src/main/cpp/startup_options.h +++ b/src/main/cpp/startup_options.h @@ -208,6 +208,10 @@ class StartupOptions { // Whether to output addition debugging information in the client. bool client_debug; + // Whether to check custom file for exit code when the Blaze Server exits + // abruptly without proper communication over gRPC. + bool use_custom_exit_code_on_abrupt_exit; + protected: // Constructor for subclasses only so that site-specific extensions of this // class can override the product name. The product_name must be the |