From db9e283c930652840cf431b3cf596cb8890d12c5 Mon Sep 17 00:00:00 2001 From: Christopher Dykes Date: Wed, 9 Nov 2016 15:13:35 -0800 Subject: [PATCH] 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 --- folly/init/Init.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/folly/init/Init.cpp b/folly/init/Init.cpp index ff53dd29..77bee684 100644 --- a/folly/init/Init.cpp +++ b/folly/init/Init.cpp @@ -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 -- 2.34.1