From b0387fe2bb97f76dea665375f78909b6c5a114cd Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Tue, 15 Jul 2008 15:09:32 +0000 Subject: [PATCH] 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 --- src/add-ons/kernel/drivers/tty/tty.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/add-ons/kernel/drivers/tty/tty.cpp b/src/add-ons/kernel/drivers/tty/tty.cpp index 46de783d87..08ce60446c 100644 --- a/src/add-ons/kernel/drivers/tty/tty.cpp +++ b/src/add-ons/kernel/drivers/tty/tty.cpp @@ -785,6 +785,8 @@ reset_termios(struct termios &termios) termios.c_cflag = B19200 | CS8 | CREAD | HUPCL; // enable receiver, hang up on last close termios.c_lflag = ECHO | ISIG | ICANON; + termios.c_ispeed = B19200; + termios.c_ospeed = B19200; // control characters termios.c_cc[VINTR] = CTRL('C');