diff options
Diffstat (limited to 'miscutils/microcom.c')
-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 a322197..fe6661f 100644 --- a/miscutils/microcom.c +++ b/miscutils/microcom.c @@ -92,7 +92,7 @@ int microcom_main(int argc UNUSED_PARAM, char **argv) sfd = open_or_warn(argv[0], O_RDWR | O_NOCTTY | O_NONBLOCK); if (sfd < 0) goto done; - fcntl(sfd, F_SETFL, 0); + fcntl(sfd, F_SETFL, O_RDWR); // put device to "raw mode" xget1(sfd, &tio, &tiosfd); |