diff options
author | Christopher Faylor <me@cgf.cx> | 2012-03-04 01:35:30 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-03-04 01:35:30 +0400 |
commit | bd7c945953b295f263978bb6a7747d2d1b728660 (patch) | |
tree | 4dba00d30aba6f97866ccd21aa40e1e4ac7962f6 /winsup/cygwin/fhandler_console.cc | |
parent | 56bed670461db0bd7ccbb4315b7b6b0c4e418dab (diff) |
* fhandler_console.cc (fhandler_console::dup): Only set ctty when we haven't
specifically called setsid.
* fhandler_tty.cc (fhandler_pty_slave::dup): Ditto. Also add comment
documenting research into rxvt problem.
* fhandler_termios.cc (fhandler_termios::tcsetpgrp): Don't check specifically
for myself->ctty == -1. Test for > 0 as that is the correct test.
(fhandler_termios::sigflush): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_console.cc')
-rw-r--r-- | winsup/cygwin/fhandler_console.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_console.cc b/winsup/cygwin/fhandler_console.cc index 4ed56635f..a30b717d2 100644 --- a/winsup/cygwin/fhandler_console.cc +++ b/winsup/cygwin/fhandler_console.cc @@ -759,7 +759,9 @@ fhandler_console::scroll_screen (int x1, int y1, int x2, int y2, int xn, int yn) int fhandler_console::dup (fhandler_base *child, int flags) { - myself->set_ctty (this, flags); + /* See comments in fhandler_pty_slave::dup */ + if (myself->ctty != -2) + myself->set_ctty (this, flags); return 0; } |