4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-28 12:05:47 +08:00

* fhandler_tty.cc (fhandler_pty_slave::open): Clarify debugging output.

(fhandler_pty_slave::open): Change ENOENT to ENXIO when can't open a tty.
This commit is contained in:
Christopher Faylor 2011-10-10 04:05:29 +00:00
parent 3d1dd0789e
commit 336e8ee685
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2011-10-10 Christopher Faylor <me.cygwin2011@cgf.cx>
* fhandler_tty.cc (fhandler_pty_slave::open): Clarify debugging output.
(fhandler_pty_slave::open): Change ENOENT to ENXIO when can't open a
tty.
2011-10-07 Corinna Vinschen <corinna@vinschen.de>
Christopher Faylor <me.cygwin2011@cgf.cx>

View File

@ -457,7 +457,7 @@ fhandler_pty_slave::open (int flags, mode_t)
{
pty_owner = OpenProcess (PROCESS_DUP_HANDLE, FALSE, p->dwProcessId);
if (pty_owner)
termios_printf ("dup handles directly since I'm allmighty.");
termios_printf ("dup handles directly since I'm the owner");
}
}
if (pty_owner)
@ -522,6 +522,9 @@ fhandler_pty_slave::open (int flags, mode_t)
return 1;
err:
if (GetLastError () == ERROR_FILE_NOT_FOUND)
set_errno (ENXIO);
else
__seterrno ();
err_no_errno:
termios_printf (errmsg);