summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/exceptions.cc
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-12-21 09:38:25 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-12-21 09:38:25 +0000
commit1b71ce005c0c57d94d74d8eb5b889d0676112f5d (patch)
treea1a2e75841061de20ec67d5c0e39c4ab7b5a34ac /winsup/cygwin/exceptions.cc
parent57a2873a5daa68a1ae3d4f4c3750d67d5223082e (diff)
downloadcygnal-1b71ce005c0c57d94d74d8eb5b889d0676112f5d.tar.gz
cygnal-1b71ce005c0c57d94d74d8eb5b889d0676112f5d.tar.bz2
cygnal-1b71ce005c0c57d94d74d8eb5b889d0676112f5d.zip
Throughout, revert ill-conceived replacement of hMainThread with
GetCurrentThread/NtCurrentThread. * dcrt0.cc (dll_crt0_0): Duplicate main thread handle to hMainThread again.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r--winsup/cygwin/exceptions.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 2e5a83b8c..e1bb7056c 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -484,7 +484,7 @@ _cygtls::handle_exceptions (EXCEPTION_RECORD *e, exception_list *frame, CONTEXT
if (debugging && ++debugging < 500000)
{
- SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_NORMAL);
+ SetThreadPriority (hMainThread, THREAD_PRIORITY_NORMAL);
return 0;
}
@@ -1307,7 +1307,7 @@ exit_sig:
{
CONTEXT c;
c.ContextFlags = CONTEXT_FULL;
- GetThreadContext (GetCurrentThread (), &c);
+ GetThreadContext (hMainThread, &c);
use_tls->copy_context (&c);
si.si_signo |= 0x80;
}