* fhandler_tty.cc (fhandler_tty_slave::init): Disable grabbing

process group ownership of tty in case we're being debugged.
This commit is contained in:
Corinna Vinschen 2010-05-07 15:03:27 +00:00
parent 93b103586f
commit 186bcf2a17
2 changed files with 6 additions and 1 deletions

View File

@ -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> 2010-05-06 Corinna Vinschen <corinna@vinschen.de>
* path.cc (path_conv::check): Drop setting sym.pflags before calling * path.cc (path_conv::check): Drop setting sym.pflags before calling

View File

@ -719,7 +719,7 @@ fhandler_tty_slave::init (HANDLE f, DWORD a, mode_t)
flags = O_RDWR; flags = O_RDWR;
int ret = open (flags); 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 /* 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 We have been started from a non-Cygwin process. So we should become