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.
* tlsoffsets.h: Regenerate.
_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