mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
1db37820aa
commit
c68ce3b9fe
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue