Don't try to install the failure signal handler in folly::init on Windows
authorChristopher Dykes <cdykes@fb.com>
Wed, 9 Nov 2016 23:13:35 +0000 (15:13 -0800)
committerFacebook Github Bot <facebook-github-bot-bot@fb.com>
Wed, 9 Nov 2016 23:23:36 +0000 (15:23 -0800)
Summary: Because GTest doesn't support it on platforms that don't implement `sigaction`.

Reviewed By: yfeldblum

Differential Revision: D4155882

fbshipit-source-id: fe8df316242b293afaf94c2a5d0f8a5e60b51285

folly/init/Init.cpp

index ff53dd2999feff036ef04eb569e0fb664b94e3ad..77bee6846b95b4be769f3277e0a2b9872ea1495b 100644 (file)
@@ -35,7 +35,7 @@ void init(int* argc, char*** argv, bool removeFlags) {
   // Install the handler now, to trap errors received during startup.
   // The callbacks, if any, can be installed later
   folly::symbolizer::installFatalSignalHandler();
-#else
+#elif !defined(_WIN32)
   google::InstallFailureSignalHandler();
 #endif