From a345dc55f9d6ea302ec7bfbb0bda96cf20da80dd Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sun, 8 Jan 2012 06:24:17 +0000 Subject: * 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. --- winsup/cygwin/fhandler_termios.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'winsup/cygwin/fhandler_termios.cc') diff --git a/winsup/cygwin/fhandler_termios.cc b/winsup/cygwin/fhandler_termios.cc index fca180d99..c218fdeda 100644 --- a/winsup/cygwin/fhandler_termios.cc +++ b/winsup/cygwin/fhandler_termios.cc @@ -62,7 +62,7 @@ fhandler_termios::tcinit (bool is_pty_master) int fhandler_termios::tcsetpgrp (const pid_t pgid) { - termios_printf ("tty %d pgid %d, sid %d, tsid %d", tc ()->ntty, pgid, + termios_printf ("%s, pgid %d, sid %d, tsid %d", tc ()->ttyname (), pgid, myself->sid, tc ()->getsid ()); if (myself->sid != tc ()->getsid ()) { @@ -168,8 +168,8 @@ fhandler_termios::bg_check (int sig) if (sig < 0) sig = -sig; - termios_printf ("bg I/O pgid %d, tpgid %d, %s, ntty %s", myself->pgid, tc ()->getpgid (), - myctty (), tc ()->ttyname ()); + termios_printf ("%s, bg I/O pgid %d, tpgid %d, myctty %s", tc ()->ttyname (), + myself->pgid, tc ()->getpgid (), myctty ()); if (tc ()->getsid () == 0) { -- cgit v1.2.3