* pinfo.cc (pinfo::exit): Call ExitProcess if called from signal thread.

This commit is contained in:
Christopher Faylor
2005-09-23 20:05:50 +00:00
parent e68bd70ab4
commit 0017e72675
2 changed files with 9 additions and 1 deletions

View File

@@ -172,7 +172,10 @@ pinfo::exit (DWORD n)
_my_tls.stackptr = _my_tls.stack;
sigproc_printf ("Calling ExitThread hProcess %p, n %p, exitcode %p",
hProcess, n, exitcode);
ExitThread (exitcode);
if (&_my_tls == _sig_tls)
ExitProcess (exitcode);
else
ExitThread (exitcode);
}
# undef self