fix for last push
This commit is contained in:
parent
0d0222c7e7
commit
23e3e30af7
4
main.c
4
main.c
@ -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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user