* 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

@ -1,3 +1,10 @@
2011-06-16 Christopher Faylor <me.cygwin2011@cgf.cx>
* 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.
2011-06-15 Christopher Faylor <me.cygwin2011@cgf.cx>
* errno.cc (EIO): Lowercase "o" representative string.

View File

@ -1140,7 +1140,7 @@ class fhandler_pty_common: public fhandler_termios
output_mutex (NULL),
input_mutex (NULL), input_available_event (NULL)
{
// nothing to do
pc.file_attributes (FILE_ATTRIBUTE_NORMAL);
}
HANDLE output_mutex, input_mutex;
HANDLE input_available_event;

View File

@ -156,6 +156,8 @@ fhandler_console::set_unit ()
}
dev ().parse (devset);
if (devset != FH_ERROR)
pc.file_attributes (FILE_ATTRIBUTE_NORMAL);
return created;
}

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;