Fix the pthread_detach assert on Darwin.

This commit is contained in:
Dan Gohman
2018-11-29 06:22:39 -08:00
parent 38acc069fa
commit 5ae48b06e1

View File

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