From 23e3e30af706ad920cbad2669b801315d4453000 Mon Sep 17 00:00:00 2001 From: Andrew Pamment Date: Sun, 7 Aug 2016 13:14:26 +1000 Subject: [PATCH] fix for last push --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 8f35f2e..1c06578 100644 --- a/main.c +++ b/main.c @@ -562,9 +562,9 @@ void serverssh(int port) { bbs_pid = forkpty(&fd, NULL, NULL, NULL); if (bbs_pid == 0) { - tcgetattr(master, &tios); + tcgetattr(STDIN_FILENO, &tios); tios.c_lflag &= ~(ICANON | ECHO | ECHONL); - tcsetattr(master, TCSAFLUSH, &tios); + tcsetattr(STDIN_FILENO, TCSAFLUSH, &tios); runbbs_ssh(ip); exit(0); }