mirror of https://gerrit.osmocom.org/libosmocore
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.
This commit is contained in:
parent
d296f4244f
commit
22be129e1e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue