* pinfo.cc (pinfo::exit): Call ExitProcess if called from signal thread.
This commit is contained in:
parent
e68bd70ab4
commit
0017e72675
|
@ -1,3 +1,8 @@
|
|||
2005-09-23 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* pinfo.cc (pinfo::exit): Call ExitProcess if called from signal
|
||||
thread.
|
||||
|
||||
2005-09-23 Christopher Faylor <cgf@timesys.com>
|
||||
|
||||
* pinfo.cc (pinfo::exit): Eliminate use of _my_tls.thread_handle.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue