Skip to content

Exit proxied main with its status when keepalives run out - #27731

Open
servusdei2018 wants to merge 1 commit into
emscripten-core:mainfrom
servusdei2018:bracyn/27721
Open

servusdei2018 wants to merge 1 commit into
emscripten-core:mainfrom
servusdei2018:bracyn/27721

Conversation

@servusdei2018

Copy link
Copy Markdown

With -pthread -sPROXY_TO_PTHREAD -sEXIT_RUNTIME, a main() that returns while a runtime keepalive is held now exits with its status once the count reaches zero, instead of exiting 0 with atexit handlers skipped.

Fixes #27721

With -pthread -sPROXY_TO_PTHREAD -sEXIT_RUNTIME, a main() that returns while a runtime keepalive is held now exits with its status once the count reaches zero, instead of exiting 0 with atexit handlers skipped.

Fixes emscripten-core#27721
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PROXY_TO_PTHREAD: runtime never exits when the proxied main thread's keepalive drops to 0 after main returns

1 participant