On Tue Oct 18 11:58:05 2022 +0000, Alexandre Julliard wrote:
Exiting a pthread normally, by returning from its procedure, or calling exit(0) for the main thread doesn't run pthread_exit and doesn't call cleanup handlers, avoiding that situation.
exit() should only be called when the last thread terminates (and with the right status code of course). There shouldn't be anything special about the main thread.
Ah yeah, I added that because we don't normally expect to return from `__wine_main`. I guess I should change that instead.