temporary fix longjmp crash

see https://sourceforge.net/p/mingw-w64/bugs/944/
This commit is contained in:
Asuka 2022-06-26 20:40:26 +08:00
parent 84b45f25e7
commit a45bf85286

View file

@ -1085,8 +1085,8 @@ pthread_exit (void *res)
id->ret_arg = res;
_pthread_cleanup_dest (id->x);
if (id->thread_noposix == 0)
longjmp(id->jb, 1);
//if (id->thread_noposix == 0)
// longjmp(id->jb, 1);
/* Make sure we free ourselves if we are detached */
if ((t = (_pthread_v *)TlsGetValue(_pthread_tls)) != NULL)