* 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.
This commit is contained in:
Christopher Faylor
2005-10-29 20:33:59 +00:00
parent f02b22dcee
commit 0dc249751d
4 changed files with 20 additions and 17 deletions

View File

@ -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 ();