Fix problem with openssh failing to connect to OpenSolaris and Zeta servers:
* we need to initialize c_ospeed and c_ispeed, as a value of 0 means 'hangup' - which is not a good default, I suppose git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26426 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -785,6 +785,8 @@ reset_termios(struct termios &termios)
|
|||||||
termios.c_cflag = B19200 | CS8 | CREAD | HUPCL;
|
termios.c_cflag = B19200 | CS8 | CREAD | HUPCL;
|
||||||
// enable receiver, hang up on last close
|
// enable receiver, hang up on last close
|
||||||
termios.c_lflag = ECHO | ISIG | ICANON;
|
termios.c_lflag = ECHO | ISIG | ICANON;
|
||||||
|
termios.c_ispeed = B19200;
|
||||||
|
termios.c_ospeed = B19200;
|
||||||
|
|
||||||
// control characters
|
// control characters
|
||||||
termios.c_cc[VINTR] = CTRL('C');
|
termios.c_cc[VINTR] = CTRL('C');
|
||||||
|
|||||||
Reference in New Issue
Block a user