summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/spawn.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-10-29 20:33:59 +0000
committerChristopher Faylor <me@cgf.cx>2005-10-29 20:33:59 +0000
commit0dc249751dd6969bd091448120efb13291d1105c (patch)
treea7e14835cea42b2c45f9a4f9440d2a601ad21107 /winsup/cygwin/spawn.cc
parentf02b22dcee17b7f533c99c59e48dfe0d58e2382e (diff)
downloadcygnal-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/spawn.cc')
-rw-r--r--winsup/cygwin/spawn.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc
index 352d408d1..463ec48fa 100644
--- a/winsup/cygwin/spawn.cc
+++ b/winsup/cygwin/spawn.cc
@@ -576,7 +576,9 @@ spawn_guts (const char * prog_arg, const char *const *argv,
si.hStdError = handle (2, 1); /* Get output handle */
si.cb = sizeof (si);
- int flags = CREATE_DEFAULT_ERROR_MODE | GetPriorityClass (hMainProc) | CREATE_SEPARATE_WOW_VDM;
+ int flags = GetPriorityClass (hMainProc);
+ sigproc_printf ("priority class %d", flags);
+ flags |= CREATE_DEFAULT_ERROR_MODE | CREATE_SEPARATE_WOW_VDM;
if (mode == _P_DETACH || !set_console_state_for_spawn ())
flags |= DETACHED_PROCESS;