We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f49a930 commit a0b3696Copy full SHA for a0b3696
system/lib/pthread/emscripten_proxy_main.c
@@ -25,6 +25,7 @@ static void* _main_thread(void* param) {
25
int emscripten_proxy_main(int argc, char** argv) {
26
pthread_attr_t attr;
27
pthread_attr_init(&attr);
28
+ pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
29
// Use the size of the current stack, which is the normal size of the stack
30
// that main() would have without PROXY_TO_PTHREAD.
31
pthread_attr_setstacksize(&attr, emscripten_stack_get_base() - emscripten_stack_get_end());
0 commit comments