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 @@ ...@@ -24,7 +24,7 @@
#include <folly/portability/Config.h> #include <folly/portability/Config.h>
#include <folly/synchronization/HazptrThreadPoolExecutor.h> #include <folly/synchronization/HazptrThreadPoolExecutor.h>
#ifndef _WIN32 #if !defined(_WIN32) && !defined(__XROS__)
#include <folly/experimental/symbolizer/SignalHandler.h> #include <folly/experimental/symbolizer/SignalHandler.h>
#endif #endif
#include <folly/portability/GFlags.h> #include <folly/portability/GFlags.h>
...@@ -33,7 +33,7 @@ DEFINE_string(logging, "", "Logging configuration"); ...@@ -33,7 +33,7 @@ DEFINE_string(logging, "", "Logging configuration");
namespace folly { namespace folly {
const unsigned long kAllFatalSignals = const unsigned long kAllFatalSignals =
#ifndef _WIN32 #if !defined(_WIN32) && !defined(__XROS__)
symbolizer::kAllFatalSignals; symbolizer::kAllFatalSignals;
#else #else
0; 0;
...@@ -48,7 +48,7 @@ void init(int* argc, char*** argv, bool removeFlags) { ...@@ -48,7 +48,7 @@ void init(int* argc, char*** argv, bool removeFlags) {
} }
void init(int* argc, char*** argv, InitOptions options) { 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. // 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(options.fatal_signals); 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