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:
Oliver Tappe 2008-07-15 15:09:32 +00:00
parent e87506af4d
commit b0387fe2bb

View File

@ -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');