18 Oct
2022
18 Oct
'22
1:12 p.m.
On Tue Oct 18 12:39:02 2022 +0000, Rémi Bernon wrote:
As we're already tracking the remaining threads and calling `_exit` in `abort_process`, would some infinite sleep at the end of main to prevent it from returning early be right? I guess another way would be to not use the main unix thread, and spawn a new one to be the main win32 thread. We could then safely call `pthread_exit` from the main unix thread, which would wait for all pthreads to exit.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/1088#note_11136