mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 00:36:34 +00:00
[sanitizer] Fail instead of crash without real_pthread_create
This commit is contained in:
parent
02710413a3
commit
55792b5ac4
@ -1760,6 +1760,8 @@ HandleSignalMode GetHandleSignalMode(int signum) {
|
||||
|
||||
#if !SANITIZER_GO
|
||||
void *internal_start_thread(void *(*func)(void *arg), void *arg) {
|
||||
if (&real_pthread_create == 0)
|
||||
return nullptr;
|
||||
// Start the thread with signals blocked, otherwise it can steal user signals.
|
||||
ScopedBlockSignals block(nullptr);
|
||||
void *th;
|
||||
|
Loading…
x
Reference in New Issue
Block a user