summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-08-03 10:47:35 +0200
committerHarald Welte <laforge@gnumonks.org>2012-08-03 10:48:22 +0200
commit22be129e1e862d86589fb7c6e4e28f934cad88fa (patch)
tree0c248c4e542dda596bb3ff4cd1189455a79032c5
parentd296f4244f90ac2eab1eb2cf3d7203f81415c103 (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.
-rw-r--r--src/serial.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/serial.c b/src/serial.c
index 11ba503d..a025ae91 100644
--- a/src/serial.c
+++ b/src/serial.c
@@ -63,7 +63,7 @@ osmo_serial_init(const char *dev, speed_t baudrate)
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;