summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_tty.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
1 files changed, 1 insertions, 1 deletions
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