* 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:
parent
4d046729d1
commit
6f294f8601
|
@ -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>
|
2011-06-15 Christopher Faylor <me.cygwin2011@cgf.cx>
|
||||||
|
|
||||||
* errno.cc (EIO): Lowercase "o" representative string.
|
* errno.cc (EIO): Lowercase "o" representative string.
|
||||||
|
|
|
@ -1140,7 +1140,7 @@ class fhandler_pty_common: public fhandler_termios
|
||||||
output_mutex (NULL),
|
output_mutex (NULL),
|
||||||
input_mutex (NULL), input_available_event (NULL)
|
input_mutex (NULL), input_available_event (NULL)
|
||||||
{
|
{
|
||||||
// nothing to do
|
pc.file_attributes (FILE_ATTRIBUTE_NORMAL);
|
||||||
}
|
}
|
||||||
HANDLE output_mutex, input_mutex;
|
HANDLE output_mutex, input_mutex;
|
||||||
HANDLE input_available_event;
|
HANDLE input_available_event;
|
||||||
|
|
|
@ -156,6 +156,8 @@ fhandler_console::set_unit ()
|
||||||
}
|
}
|
||||||
|
|
||||||
dev ().parse (devset);
|
dev ().parse (devset);
|
||||||
|
if (devset != FH_ERROR)
|
||||||
|
pc.file_attributes (FILE_ATTRIBUTE_NORMAL);
|
||||||
return created;
|
return created;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -375,7 +375,7 @@ _pinfo::_ctty (char *buf)
|
||||||
void
|
void
|
||||||
_pinfo::set_ctty (tty_min *tc, int flags, fhandler_termios *fh)
|
_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))
|
if ((ctty <= 0 || ctty == tc->ntty) && !(flags & O_NOCTTY))
|
||||||
{
|
{
|
||||||
ctty = tc->ntty;
|
ctty = tc->ntty;
|
||||||
|
|
Loading…
Reference in New Issue