diff options
author | Christopher Faylor <me@cgf.cx> | 2012-01-08 06:24:17 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-01-08 06:24:17 +0000 |
commit | a345dc55f9d6ea302ec7bfbb0bda96cf20da80dd (patch) | |
tree | 93fe4f45e9ab80c5e2612a3ef963377cadbe8abc /winsup/cygwin/dtable.cc | |
parent | 04243e461d1101477a2b0de259529b1e9249f917 (diff) | |
download | newlib-a345dc55f9d6ea302ec7bfbb0bda96cf20da80dd.zip newlib-a345dc55f9d6ea302ec7bfbb0bda96cf20da80dd.tar.gz newlib-a345dc55f9d6ea302ec7bfbb0bda96cf20da80dd.tar.bz2 |
* dtable.cc (dtable::stdio_init): Always initialize console when we have one.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Use a better method to
print tty name for debugging.
(fhandler_termios::bg_check): Ditto.
* pinfo.cc (_pinfo::set_ctty): Remove leftover debugging stuff. Simplify
behavior when setting tty's sid and pgid to avoid overwriting previously set
values.
* spawn.cc (ch_spawn): Cosmetic change.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r-- | winsup/cygwin/dtable.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc index 05becaa..361010e 100644 --- a/winsup/cygwin/dtable.cc +++ b/winsup/cygwin/dtable.cc @@ -149,14 +149,10 @@ dtable::get_debugger_info () void dtable::stdio_init () { - /* Set these before trying to output anything from strace. - Also, always set them even if we're to pick up our parent's fds - in case they're missed. */ - if (myself->cygstarted || ISSTATE (myself, PID_CYGPARENT)) { tty_min *t = cygwin_shared->tty.get_cttyp (); - if (t && t->getpgid () == myself->pid && t->is_console) + if (t && t->is_console) init_console_handler (true); return; } |