Commit 8d3533ba authored by Ivan Egorov's avatar Ivan Egorov Committed by Facebook GitHub Bot

Suppress signals handling in `Init.cpp`.

Reviewed By: yfeldblum

Differential Revision: D27260961

fbshipit-source-id: a2161e4e909531518f523fd611b109f7021ae258
parent 927e83e5
......@@ -24,7 +24,7 @@
#include <folly/portability/Config.h>
#include <folly/synchronization/HazptrThreadPoolExecutor.h>
#ifndef _WIN32
#if !defined(_WIN32) && !defined(__XROS__)
#include <folly/experimental/symbolizer/SignalHandler.h>
#endif
#include <folly/portability/GFlags.h>
......@@ -33,7 +33,7 @@ DEFINE_string(logging, "", "Logging configuration");
namespace folly {
const unsigned long kAllFatalSignals =
#ifndef _WIN32
#if !defined(_WIN32) && !defined(__XROS__)
symbolizer::kAllFatalSignals;
#else
0;
......@@ -48,7 +48,7 @@ void init(int* argc, char*** argv, bool removeFlags) {
}
void init(int* argc, char*** argv, InitOptions options) {
#ifndef _WIN32
#if !defined(_WIN32) && !defined(__XROS__)
// Install the handler now, to trap errors received during startup.
// The callbacks, if any, can be installed later
folly::symbolizer::installFatalSignalHandler(options.fatal_signals);
......
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