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
diff --git a/src/main/cpp/startup_options.h b/src/main/cpp/startup_options.h
index 7020c04..b36a70a 100644
--- a/src/main/cpp/startup_options.h
+++ b/src/main/cpp/startup_options.h
@@ -208,6 +208,10 @@
// 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