diff options
-rw-r--r-- | init.c | 3 | ||||
-rw-r--r-- | init/init.c | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -278,7 +278,8 @@ static void set_term(int fd) | |||
278 | 278 | ||
279 | /* Make it be sane */ | 279 | /* Make it be sane */ |
280 | tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD; | 280 | tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD; |
281 | tty.c_cflag |= HUPCL|CLOCAL; | 281 | tty.c_cflag |= CREAD|HUPCL|CLOCAL; |
282 | |||
282 | 283 | ||
283 | /* input modes */ | 284 | /* input modes */ |
284 | tty.c_iflag = ICRNL | IXON | IXOFF; | 285 | tty.c_iflag = ICRNL | IXON | IXOFF; |
diff --git a/init/init.c b/init/init.c index 22bedd9ba..d65220cdd 100644 --- a/init/init.c +++ b/init/init.c | |||
@@ -278,7 +278,8 @@ static void set_term(int fd) | |||
278 | 278 | ||
279 | /* Make it be sane */ | 279 | /* Make it be sane */ |
280 | tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD; | 280 | tty.c_cflag &= CBAUD|CBAUDEX|CSIZE|CSTOPB|PARENB|PARODD; |
281 | tty.c_cflag |= HUPCL|CLOCAL; | 281 | tty.c_cflag |= CREAD|HUPCL|CLOCAL; |
282 | |||
282 | 283 | ||
283 | /* input modes */ | 284 | /* input modes */ |
284 | tty.c_iflag = ICRNL | IXON | IXOFF; | 285 | tty.c_iflag = ICRNL | IXON | IXOFF; |