Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Yano <takashi.yano@nifty.ne.jp>2019-09-15 07:05:51 +0300
committerKen Brown <kbrown@cornell.edu>2019-09-15 18:09:06 +0300
commit6983433f8e097449a7182def4c4393306e9a9a46 (patch)
tree8460d0b333bda6dbb072b59d6860aa04835fbea2
parenta083a4f2661dd465b30e508fca343f678421762f (diff)
Cygwin: pty: Fix bad file descriptor error in some environment.
- The bad file descriptor problem reported in: https://cygwin.com/ml/cygwin-patches/2019-q3/msg00104.html was recurring. Fixed again.
-rw-r--r--winsup/cygwin/fhandler_tty.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 9aa832641..1b1d54447 100644
--- a/winsup/cygwin/fhandler_tty.cc
+++ b/winsup/cygwin/fhandler_tty.cc
@@ -857,8 +857,6 @@ fhandler_pty_slave::open (int flags, mode_t)
pcon_attached_to = get_minor ();
init_console_handler (true);
}
- else if (pcon_attached_to < 0)
- fhandler_console::need_invisible ();
set_open_status ();
return 1;