diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-24 02:04:10 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-10-24 02:04:10 +0200 |
commit | f2657a9968d2f5282f9a7f2e8b93a8d5a57e04fd (patch) | |
tree | def58d107b0f0a8201cd98bb6509f18c6bd8322f /init | |
parent | 2b299fed6a77d3aaf7e4e768fb519f2536c2eff0 (diff) | |
download | busybox-w32-f2657a9968d2f5282f9a7f2e8b93a8d5a57e04fd.tar.gz busybox-w32-f2657a9968d2f5282f9a7f2e8b93a8d5a57e04fd.tar.bz2 busybox-w32-f2657a9968d2f5282f9a7f2e8b93a8d5a57e04fd.zip |
init: do not clear CRTSCTS (fix from Debian bug 528560)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/init/init.c b/init/init.c index 340731b8b..12348078d 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -463,7 +463,11 @@ static void set_sane_term(void) | |||
463 | #endif | 463 | #endif |
464 | 464 | ||
465 | /* Make it be sane */ | 465 | /* Make it be sane */ |
466 | tty.c_cflag &= CBAUD | CBAUDEX | CSIZE | CSTOPB | PARENB | PARODD; | 466 | #ifndef CRTSCTS |
467 | # define CRTSCTS 0 | ||
468 | #endif | ||
469 | /* added CRTSCTS to fix Debian bug 528560 */ | ||
470 | tty.c_cflag &= CBAUD | CBAUDEX | CSIZE | CSTOPB | PARENB | PARODD | CRTSCTS; | ||
467 | tty.c_cflag |= CREAD | HUPCL | CLOCAL; | 471 | tty.c_cflag |= CREAD | HUPCL | CLOCAL; |
468 | 472 | ||
469 | /* input modes */ | 473 | /* input modes */ |
@@ -473,8 +477,7 @@ static void set_sane_term(void) | |||
473 | tty.c_oflag = OPOST | ONLCR; | 477 | tty.c_oflag = OPOST | ONLCR; |
474 | 478 | ||
475 | /* local modes */ | 479 | /* local modes */ |
476 | tty.c_lflag = | 480 | tty.c_lflag = ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE | IEXTEN; |
477 | ISIG | ICANON | ECHO | ECHOE | ECHOK | ECHOCTL | ECHOKE | IEXTEN; | ||
478 | 481 | ||
479 | tcsetattr_stdin_TCSANOW(&tty); | 482 | tcsetattr_stdin_TCSANOW(&tty); |
480 | } | 483 | } |