* 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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user