diff options
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/microcom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/miscutils/microcom.c b/miscutils/microcom.c index a322197b8..fe6661f00 100644 --- a/miscutils/microcom.c +++ b/miscutils/microcom.c | |||
@@ -92,7 +92,7 @@ int microcom_main(int argc UNUSED_PARAM, char **argv) | |||
92 | sfd = open_or_warn(argv[0], O_RDWR | O_NOCTTY | O_NONBLOCK); | 92 | sfd = open_or_warn(argv[0], O_RDWR | O_NOCTTY | O_NONBLOCK); |
93 | if (sfd < 0) | 93 | if (sfd < 0) |
94 | goto done; | 94 | goto done; |
95 | fcntl(sfd, F_SETFL, 0); | 95 | fcntl(sfd, F_SETFL, O_RDWR); |
96 | 96 | ||
97 | // put device to "raw mode" | 97 | // put device to "raw mode" |
98 | xget1(sfd, &tio, &tiosfd); | 98 | xget1(sfd, &tio, &tiosfd); |