From: Christopher Dykes <cdykes@fb.com>
Date: Wed, 9 Nov 2016 23:13:35 +0000 (-0800)
Subject: Don't try to install the failure signal handler in folly::init on Windows
X-Git-Tag: v2016.11.14.00~16
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=db9e283c930652840cf431b3cf596cb8890d12c5;p=folly.git

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
---

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