Commit db9e283c authored by Christopher Dykes's avatar Christopher Dykes Committed by Facebook Github Bot

Don't try to install the failure signal handler in folly::init on Windows

Summary: Because GTest doesn't support it on platforms that don't implement `sigaction`.

Reviewed By: yfeldblum

Differential Revision: D4155882

fbshipit-source-id: fe8df316242b293afaf94c2a5d0f8a5e60b51285
parent 1dcc41cf
...@@ -35,7 +35,7 @@ void init(int* argc, char*** argv, bool removeFlags) { ...@@ -35,7 +35,7 @@ void init(int* argc, char*** argv, bool removeFlags) {
// Install the handler now, to trap errors received during startup. // Install the handler now, to trap errors received during startup.
// The callbacks, if any, can be installed later // The callbacks, if any, can be installed later
folly::symbolizer::installFatalSignalHandler(); folly::symbolizer::installFatalSignalHandler();
#else #elif !defined(_WIN32)
google::InstallFailureSignalHandler(); google::InstallFailureSignalHandler();
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment