diff --git a/lib/execute/signalhandlers/SignalHandlers.cpp b/lib/execute/signalhandlers/SignalHandlers.cpp index 71ba9c3a02..f47d7ec7f9 100644 --- a/lib/execute/signalhandlers/SignalHandlers.cpp +++ b/lib/execute/signalhandlers/SignalHandlers.cpp @@ -772,7 +772,7 @@ EnsureDarwinMachPorts() return false; } r = pthread_detach(handlerThread); - assert(r != 0); + assert(r == 0); // In addition to the process-wide signal handler setup, OSX needs each // thread configured to send its exceptions to sMachDebugPort. While there