summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-10-31 16:30:46 +0000
committerChristopher Faylor <me@cgf.cx>2001-10-31 16:30:46 +0000
commit747e5773319f36839927dd67005ceab836ede48d (patch)
tree0da3a39c186ba8baa40a85f5441f327031c119eb
parent928eca7a5814489a64bdba00bf37bda876761d45 (diff)
downloadcygnal-747e5773319f36839927dd67005ceab836ede48d.tar.gz
cygnal-747e5773319f36839927dd67005ceab836ede48d.tar.bz2
cygnal-747e5773319f36839927dd67005ceab836ede48d.zip
* environ.cc: Set reset_com to false to mimic linux behavior more closely.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/environ.cc2
-rw-r--r--winsup/cygwin/exceptions.cc1
3 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index bb4755071..de9794448 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-31 Christopher Faylor <cgf@redhat.com>
+
+ * environ.cc: Set reset_com to false to mimic linux behavior more
+ closely.
+
2001-10-31 Corinna Vinschen <corinna@vinschen.de>
* dtable.cc (dtable::vfork_child_dup): Revert impersonation
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index e311e4b56..fcd126212 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -36,7 +36,7 @@ extern BOOL allow_winsymlinks;
extern BOOL strip_title_path;
extern int pcheck_case;
extern int subauth_id;
-BOOL reset_com = TRUE;
+BOOL reset_com = FALSE;
static BOOL envcache = TRUE;
static char **lastenviron;
diff --git a/winsup/cygwin/exceptions.cc b/winsup/cygwin/exceptions.cc
index 9fd018e1b..560eab43c 100644
--- a/winsup/cygwin/exceptions.cc
+++ b/winsup/cygwin/exceptions.cc
@@ -1068,6 +1068,7 @@ signal_exit (int rc)
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. */
(void) SetThreadPriority (GetCurrentThread (), THREAD_PRIORITY_TIME_CRITICAL);
+ (void) SetThreadPriority (hMainThread, THREAD_PRIORITY_IDLE);
/* Unlock any main thread mutos since we're executing with prejudice. */
muto *m;