Remove pthread_exit().

Returning from the thread this way prevents local variables to be
destructed correctly since pthread_exit is marked noreturn.

This fixes a segmentation fault with glibc and llvm-libunwind on exit.
This commit is contained in:
zackiloco 2023-05-25 22:40:55 +02:00
parent a2fa9da073
commit a5e4969d7e
1 changed files with 1 additions and 1 deletions

View File

@ -657,7 +657,7 @@ namespace Runner {
<< Term::sync_end << flush;
}
//* ----------------------------------------------- THREAD LOOP -----------------------------------------------
pthread_exit(NULL);
return {};
}
//? ------------------------------------------ Secondary thread end -----------------------------------------------