diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 94ca8f1c6..ecc4de15d 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-07-23 Corinna Vinschen + + * dtable.cc (dtable::get_debugger_info): Make stderr r/w according + to SUSv3. + 2004-07-22 Corinna Vinschen * fhandler_tty.cc (fhandler_tty_slave::open): Use requested flag diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index c9f0cde7e..cc72a2a9f 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -119,7 +119,8 @@ dtable::get_debugger_info () if (!fh) continue; fds[i] = fh; - if (!fh->open ((i ? O_WRONLY : O_RDONLY) | O_BINARY, 0777)) + if (!fh->open ((i ? (i == 2 ? O_RDWR : O_WRONLY) : O_RDONLY) + | O_BINARY, 0777)) release (i); else CloseHandle (h);