Marcus Meissner <[EMAIL PROTECTED]> writes: > Appears to work good, Win95 notepad.exe no longer crashes on exit. > > Ciao, Marcus > > Changelog: > > Andrew Lewycky <[EMAIL PROTECTED]> > This patch fixes most crashes and deadlocks on shutdown. > Threads receive SIGTERM a process exit time, which they > were handling in sigterm_handler set up by the initial > thread (which they inherited). As a result, exit was being > called for each thread. Exit can only be safely called once, > so they now install a new SIGTERM handler that calls _exit. I find it very strange that it would make any difference. This patch fixes a bug caused by having a SIGTERM handler call exit() (to get the proper exit code), but since we don't have that in our tree it shouldn't be necessary to have the fix either. -- Alexandre Julliard [EMAIL PROTECTED]