| Index: lib/Support/CrashRecoveryContext.cpp
|
| diff --git a/lib/Support/CrashRecoveryContext.cpp b/lib/Support/CrashRecoveryContext.cpp
|
| index 9b0e44339d8411dddf387fcb3afabc7141b1a315..2eb0885610cc80fab23c11752abfcb248fc5c3b6 100644
|
| --- a/lib/Support/CrashRecoveryContext.cpp
|
| +++ b/lib/Support/CrashRecoveryContext.cpp
|
| @@ -277,6 +277,7 @@ void CrashRecoveryContext::Enable() {
|
|
|
| gCrashRecoveryEnabled = true;
|
|
|
| +#if !defined(__native_client__) // @LOCALMOD
|
| // Setup the signal handler.
|
| struct sigaction Handler;
|
| Handler.sa_handler = CrashRecoverySignalHandler;
|
| @@ -286,6 +287,11 @@ void CrashRecoveryContext::Enable() {
|
| for (unsigned i = 0; i != NumSignals; ++i) {
|
| sigaction(Signals[i], &Handler, &PrevActions[i]);
|
| }
|
| +// @LOCALMOD-START
|
| +#else
|
| +#warning Cannot setup the signal handler on this machine
|
| +#endif
|
| +// @LOCALMOD-END
|
| }
|
|
|
| void CrashRecoveryContext::Disable() {
|
| @@ -296,9 +302,11 @@ void CrashRecoveryContext::Disable() {
|
|
|
| gCrashRecoveryEnabled = false;
|
|
|
| +#if !defined(__native_client__) // @LOCALMOD
|
| // Restore the previous signal handlers.
|
| for (unsigned i = 0; i != NumSignals; ++i)
|
| sigaction(Signals[i], &PrevActions[i], nullptr);
|
| +#endif // @LOCALMOD
|
| }
|
|
|
| #endif
|
|
|