summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_tty.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r--winsup/cygwin/fhandler_tty.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 5236430cc..0d16130be 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -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,7 +522,10 @@ fhandler_pty_slave::open (int flags, mode_t)
return 1;
err:
- __seterrno ();
+ if (GetLastError () == ERROR_FILE_NOT_FOUND)
+ set_errno (ENXIO);
+ else
+ __seterrno ();
err_no_errno:
termios_printf (errmsg);
err_no_msg: