Michael Ost most@museresearch.com writes:
I'll try SIGQUIT, knowing that Wine itself has no intentions of using it any time soon.
As far as clean up goes, all I want to do is PostQuitMessage(0). Does this look safe as a SIGQUIT handler?
It should be safe, as long as you never run 16-bit code; you also need to add SIGQUIT to the various signal masks in ntdll. But a small Winelib app that sends a WM_QUIT message to the main app is probably a lot easier...