From cf60cdd9c9a15165ccac726c421d843122765bf5 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sun, 15 Oct 2017 20:07:28 +0200 Subject: [PATCH] Fix termios regression on PPC introduced in 907595d For some reason PPC is much more sensitive than ARM when it comes to termios changes. This patch fixes a regression in Ctrl-C handling after login introduced in 907595d when blocking of Ctrl-C was added to prevent breaking the login-prompt. Signed-off-by: Joachim Nilsson --- src/getty.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/getty.c b/src/getty.c index 7b7b0ac4..43b8d7d5 100644 --- a/src/getty.c +++ b/src/getty.c @@ -88,8 +88,7 @@ static void stty(int fd, speed_t speed) term.c_iflag = ICRNL|IXON|IXOFF; term.c_oflag = OPOST|ONLCR; term.c_cflag |= CS8|CREAD|HUPCL|CBAUDEX; - term.c_lflag |= ICANON|ECHO|ECHOE|ECHOK|ECHOKE; - term.c_lflag &= ~ISIG; + term.c_lflag |= ICANON|ISIG|ECHO|ECHOE|ECHOK|ECHOKE; /* Reset special characters to defaults */ term.c_cc[VINTR] = CTRL('C');