diff options
author | Harald Welte <laforge@gnumonks.org> | 2016-12-23 22:59:27 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2016-12-23 22:59:27 +0100 |
commit | c68ce3b9fe1314f8133eed1e7246fdfee9295744 (patch) | |
tree | 62f10e2063c399732054a1c7787c83f8f105e1b1 /src/serial.c | |
parent | 1db37820aaa0e83cfc7f26270f5bb3a6d9a27189 (diff) |
serial.c: Some ports don't support TIOCMBIS for RTS/CTS control
So let's ignore the error we might get from this opreration.
Change-Id: I69dad90403355b6512c3bf4c7fd10dd1dd985f01
Diffstat (limited to 'src/serial.c')
-rw-r--r-- | src/serial.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serial.c b/src/serial.c index 44032263..1cbd3c06 100644 --- a/src/serial.c +++ b/src/serial.c @@ -113,8 +113,8 @@ osmo_serial_init(const char *dev, speed_t baudrate) rc = ioctl(fd, TIOCMBIS, &v24); if (rc < 0) { dbg_perror("ioctl(TIOCMBIS)"); - rc = -errno; - goto error; + /* some serial porst don't support this, so let's not + * return an error here */ } return fd; |