diff options
author | Christopher Faylor <me@cgf.cx> | 2005-10-29 20:33:59 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-10-29 20:33:59 +0000 |
commit | 0dc249751dd6969bd091448120efb13291d1105c (patch) | |
tree | a7e14835cea42b2c45f9a4f9440d2a601ad21107 /winsup/cygwin/exceptions.cc | |
parent | f02b22dcee17b7f533c99c59e48dfe0d58e2382e (diff) | |
download | cygnal-0dc249751dd6969bd091448120efb13291d1105c.tar.gz cygnal-0dc249751dd6969bd091448120efb13291d1105c.tar.bz2 cygnal-0dc249751dd6969bd091448120efb13291d1105c.zip |
* exceptions.cc (signal_exit): Eliminate setting of main thread priority since
process lock should make that unnecessary.
* fork.cc (stack_base): Eliminate.
(frok::parent): Subsume stack_base and just set stack stuff here. Report on
priority class in debugging output.
* spawn.cc (spawn_guts): Report on priority class in debugging output.
Diffstat (limited to 'winsup/cygwin/exceptions.cc')
-rw-r--r-- | winsup/cygwin/exceptions.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc index be8fb41d2..fc58bdf22 100644 --- a/winsup/cygwin/exceptions.cc +++ b/winsup/cygwin/exceptions.cc @@ -1187,10 +1187,8 @@ signal_exit (int rc) if (hExeced || exit_state) myself.exit (rc); - /* We'd like to stop the main thread from executing but when we do that it - causes random, inexplicable hangs. So, instead, we set up the priority - of this thread really high so that it should do its thing and then exit. */ - SetThreadPriority (hMainThread, THREAD_PRIORITY_IDLE); + /* Starve other threads in a vain attempt to stop them from doing something + stupid. */ SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL); user_data->resourcelocks->Delete (); |