* dtable.cc (dtable::get_debugger_info): Make stderr r/w according

to SUSv3.
This commit is contained in:
Corinna Vinschen 2004-07-23 09:04:59 +00:00
parent 0544d11637
commit 061095b5a3
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-07-23 Corinna Vinschen <corinna@vinschen.de>
* dtable.cc (dtable::get_debugger_info): Make stderr r/w according
to SUSv3.
2004-07-22 Corinna Vinschen <corinna@vinschen.de>
* fhandler_tty.cc (fhandler_tty_slave::open): Use requested flag

View File

@ -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);