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:
Harald Welte 2012-08-03 10:47:35 +02:00
parent d296f4244f
commit 22be129e1e
1 changed files with 1 additions and 1 deletions

View File

@ -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;