* fhandler_console.cc (fhandler_console::set_unit): Set pc.file_attributes() to

reflect existence.
* fhandler.h (fhandler_pty_common::fhandler_pty_common): Ditto.
* pinfo.cc (_pinfo::set_ctty): Output device numbers in hex.
This commit is contained in:
Christopher Faylor
2011-06-16 23:00:00 +00:00
parent 4d046729d1
commit 6f294f8601
4 changed files with 11 additions and 2 deletions

View File

@@ -375,7 +375,7 @@ _pinfo::_ctty (char *buf)
void
_pinfo::set_ctty (tty_min *tc, int flags, fhandler_termios *fh)
{
debug_printf ("old %s, ctty %d, tc->ntty %d flags & O_NOCTTY %p", __ctty (), ctty, tc->ntty, flags & O_NOCTTY);
debug_printf ("old %s, ctty device number %p, tc->ntty device number %p flags & O_NOCTTY %p", __ctty (), ctty, tc->ntty, flags & O_NOCTTY);
if ((ctty <= 0 || ctty == tc->ntty) && !(flags & O_NOCTTY))
{
ctty = tc->ntty;