diff options
author | Christopher Faylor <me@cgf.cx> | 2005-09-23 19:23:26 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-09-23 19:23:26 +0000 |
commit | 08c7ea264b8a67894e7c084b0c8ccb515246975b (patch) | |
tree | 99ddf674c3326e7c13a2080c12f2c182c4cfd02f /winsup | |
parent | e009e2f51de3419e119cadd2737c11c2506b2770 (diff) | |
download | cygnal-08c7ea264b8a67894e7c084b0c8ccb515246975b.tar.gz cygnal-08c7ea264b8a67894e7c084b0c8ccb515246975b.tar.bz2 cygnal-08c7ea264b8a67894e7c084b0c8ccb515246975b.zip |
* pinfo.cc (pinfo::exit): Eliminate use of _my_tls.thread_handle.
Diffstat (limited to 'winsup')
-rw-r--r-- | winsup/cygwin/ChangeLog | 4 | ||||
-rw-r--r-- | winsup/cygwin/pinfo.cc | 12 |
2 files changed, 6 insertions, 10 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a5d5fb2cc..dca3acac7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,9 @@ 2005-09-23 Christopher Faylor <cgf@timesys.com> + * pinfo.cc (pinfo::exit): Eliminate use of _my_tls.thread_handle. + +2005-09-23 Christopher Faylor <cgf@timesys.com> + * cygtls.h (struct _cygtls::thread_handle): Remove/revert. * sigproc.h (struct sipacket::thread_handle): Put thread_handle here. * sigproc.cc (sigproc_terminate): Move setting of thread_handle... diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 1d7b837cb..59eb65207 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -170,17 +170,9 @@ pinfo::exit (DWORD n) _my_tls.stacklock = 0; _my_tls.stackptr = _my_tls.stack; - if (_my_tls.thread_handle) - { - sigproc_printf ("Calling ExitThread hProcess %p, n %p, exitcode %p", - hProcess, n, exitcode); - ExitThread (exitcode); - } - - sigproc_printf ("Calling ExitProcess since hMainthread is 0, hProcess %p, n %p, exitcode %p", + sigproc_printf ("Calling ExitThread hProcess %p, n %p, exitcode %p", hProcess, n, exitcode); - release (); - ExitProcess (exitcode); + ExitThread (exitcode); } # undef self |