diff options
author | Christopher Faylor <me@cgf.cx> | 2005-11-17 16:36:00 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-11-17 16:36:00 +0000 |
commit | 7912bcbf361e5a82f910ba6114a04f2806406e4b (patch) | |
tree | 900f08fb426b440d3b51181c354284b488c3d273 /winsup/cygwin/pinfo.cc | |
parent | 0f46c31745740b8538ce30944182f425ef4f0142 (diff) | |
download | newlib-7912bcbf361e5a82f910ba6114a04f2806406e4b.zip newlib-7912bcbf361e5a82f910ba6114a04f2806406e4b.tar.gz newlib-7912bcbf361e5a82f910ba6114a04f2806406e4b.tar.bz2 |
* fork.cc (fork): Move top-of-stack calculation later.
* pinfo.cc (_pinfo::set_ctty): Use __ctty to print current console in debugging
output.
Diffstat (limited to 'winsup/cygwin/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 6610919..9b3b39c 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -330,18 +330,18 @@ _pinfo::_ctty (char *buf) void _pinfo::set_ctty (tty_min *tc, int flags, fhandler_tty_slave *arch) { - debug_printf ("checking if /dev/tty%d changed", ctty); + debug_printf ("old %s", __ctty ()); if ((ctty < 0 || ctty == tc->ntty) && !(flags & O_NOCTTY)) { ctty = tc->ntty; - syscall_printf ("attached tty%d sid %d, pid %d, tty->pgid %d, tty->sid %d", - tc->ntty, sid, pid, pgid, tc->getsid ()); + syscall_printf ("attached %s sid %d, pid %d, tty->pgid %d, tty->sid %d", + __ctty (), sid, pid, pgid, tc->getsid ()); pinfo p (tc->getsid ()); if (sid == pid && (!p || p->pid == pid || !p->exists ())) { - paranoid_printf ("resetting tty%d sid. Was %d, now %d. pgid was %d, now %d.", - tc->ntty, tc->getsid (), sid, tc->getpgid (), pgid); + paranoid_printf ("resetting %s sid. Was %d, now %d. pgid was %d, now %d.", + __ctty (), tc->getsid (), sid, tc->getpgid (), pgid); /* We are the session leader */ tc->setsid (sid); tc->setpgid (pgid); |