Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2010-05-07 19:03:27 +0400
committerCorinna Vinschen <corinna@vinschen.de>2010-05-07 19:03:27 +0400
commit186bcf2a17b1b9566853e1d3ce221109f9335ad6 (patch)
tree52628f58af4588fb5dabb3535887408534c43634 /winsup
parent93b103586f8537cebe76ad1a53e15de1d9c895b9 (diff)
* fhandler_tty.cc (fhandler_tty_slave::init): Disable grabbing
process group ownership of tty in case we're being debugged.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index abaf716be..ec2a931ce 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-07 Corinna Vinschen <corinna@vinschen.de>
+
+ * fhandler_tty.cc (fhandler_tty_slave::init): Disable grabbing
+ process group ownership of tty in case we're being debugged.
+
2010-05-06 Corinna Vinschen <corinna@vinschen.de>
* path.cc (path_conv::check): Drop setting sym.pflags before calling
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 77205ea6e..8a0cfb415 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -719,7 +719,7 @@ fhandler_tty_slave::init (HANDLE f, DWORD a, mode_t)
flags = O_RDWR;
int ret = open (flags);
- if (ret && !cygwin_finished_initializing)
+ if (ret && !cygwin_finished_initializing && !IsDebuggerPresent ())
{
/* This only occurs when called from dtable::init_std_file_from_handle
We have been started from a non-Cygwin process. So we should become