Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2012-01-08 10:24:17 +0400
committerChristopher Faylor <me@cgf.cx>2012-01-08 10:24:17 +0400
commita345dc55f9d6ea302ec7bfbb0bda96cf20da80dd (patch)
tree93fe4f45e9ab80c5e2612a3ef963377cadbe8abc /winsup/cygwin/fhandler_termios.cc
parent04243e461d1101477a2b0de259529b1e9249f917 (diff)
* 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/fhandler_termios.cc')
-rw-r--r--winsup/cygwin/fhandler_termios.cc6
1 files changed, 3 insertions, 3 deletions
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)
{