commit | 22be129e1e862d86589fb7c6e4e28f934cad88fa | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Fri Aug 03 10:47:35 2012 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Aug 03 10:48:22 2012 +0200 |
tree | 0c248c4e542dda596bb3ff4cd1189455a79032c5 | |
parent | d296f4244f90ac2eab1eb2cf3d7203f81415c103 [diff] |
serial: don't set O_NDELAY, as it is more or less O_NONBLOCK Applications like osmocon will set O_NONBLOCK themselves or have it done indirectly by registering it with libosmocore/select.c code.
diff --git a/src/serial.c b/src/serial.c index 11ba503..a025ae9 100644 --- a/src/serial.c +++ b/src/serial.c
@@ -63,7 +63,7 @@ struct termios tio; /* Open device */ - fd = open(dev, O_RDWR | O_NOCTTY | O_NDELAY); + fd = open(dev, O_RDWR | O_NOCTTY); if (fd < 0) { dbg_perror("open"); return -errno;