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
This commit is contained in:
Harald Welte 2016-12-23 22:59:27 +01:00
parent 1db37820aa
commit c68ce3b9fe
1 changed files with 2 additions and 2 deletions

View File

@ -113,8 +113,8 @@ osmo_serial_init(const char *dev, speed_t baudrate)
rc = ioctl(fd, TIOCMBIS, &v24); rc = ioctl(fd, TIOCMBIS, &v24);
if (rc < 0) { if (rc < 0) {
dbg_perror("ioctl(TIOCMBIS)"); dbg_perror("ioctl(TIOCMBIS)");
rc = -errno; /* some serial porst don't support this, so let's not
goto error; * return an error here */
} }
return fd; return fd;