fix for last push

This commit is contained in:
Andrew Pamment 2016-08-07 13:14:26 +10:00
parent 0d0222c7e7
commit 23e3e30af7

4
main.c
View File

@ -562,9 +562,9 @@ void serverssh(int port) {
bbs_pid = forkpty(&fd, NULL, NULL, NULL); bbs_pid = forkpty(&fd, NULL, NULL, NULL);
if (bbs_pid == 0) { if (bbs_pid == 0) {
tcgetattr(master, &tios); tcgetattr(STDIN_FILENO, &tios);
tios.c_lflag &= ~(ICANON | ECHO | ECHONL); tios.c_lflag &= ~(ICANON | ECHO | ECHONL);
tcsetattr(master, TCSAFLUSH, &tios); tcsetattr(STDIN_FILENO, TCSAFLUSH, &tios);
runbbs_ssh(ip); runbbs_ssh(ip);
exit(0); exit(0);
} }