summaryrefslogtreecommitdiff
path: root/init/init.c
diff options
context:
space:
mode:
authorDenys Vlasenko2010-10-24 02:04:10 +0200
committerDenys Vlasenko2010-10-24 02:04:10 +0200
commitf2657a9968d2f5282f9a7f2e8b93a8d5a57e04fd (patch)
treedef58d107b0f0a8201cd98bb6509f18c6bd8322f /init/init.c
parent2b299fed6a77d3aaf7e4e768fb519f2536c2eff0 (diff)
downloadbusybox-f2657a9968d2f5282f9a7f2e8b93a8d5a57e04fd.zip
busybox-f2657a9968d2f5282f9a7f2e8b93a8d5a57e04fd.tar.gz
init: do not clear CRTSCTS (fix from Debian bug 528560)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init/init.c')
-rw-r--r--init/init.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c
index 340731b..1234807 100644
--- a/init/init.c
+++ b/init/init.c
@@ -463,7 +463,11 @@ static void set_sane_term(void)
#endif
/* Make it be sane */
- tty.c_cflag &= CBAUD | CBAUDEX | CSIZE | CSTOPB | PARENB | PARODD;
+#ifndef CRTSCTS
+# define CRTSCTS 0
+#endif
+ /* added CRTSCTS to fix Debian bug 528560 */
+ tty.c_cflag &= CBAUD | CBAUDEX | CSIZE | CSTOPB | PARENB | PARODD | CRTSCTS;
tty.c_cflag |= CREAD | HUPCL | CLOCAL;
/* input modes */
@@ -473,8 +477,7 @@ static void set_sane_term(void)
tty.c_oflag = OPOST | ONLCR;
/* local modes */
- tty.c_lflag =
- ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE | IEXTEN;
+ tty.c_lflag = ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE | IEXTEN;
tcsetattr_stdin_TCSANOW(&tty);
}