diff options
author | Gary E. Miller <gem@rellim.com> | 2016-05-26 13:17:27 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2016-05-26 13:17:27 -0700 |
commit | 70c068d2760f8243c15e51a1f56f602005b7e1e2 (patch) | |
tree | 0ebaf00440408811b605934b4b205d39c32f7b4c /serial.c | |
parent | b3d513f898a760de624b34a2655ce251708f3d67 (diff) | |
download | gpsd-70c068d2760f8243c15e51a1f56f602005b7e1e2.tar.gz |
revert error cchecking of tcsetattr() in gpsd_set_speed().
As the comment now says:
strangely this fails on non-serial ports, but if
we do not try, we get other failures.
so ignore for now, as we always have, until it can
be nailed down.
Diffstat (limited to 'serial.c')
-rw-r--r-- | serial.c | 14 |
1 files changed, 10 insertions, 4 deletions
@@ -318,10 +318,16 @@ void gpsd_set_speed(struct gps_device_t *session, break; } if (tcsetattr(session->gpsdata.gps_fd, TCSANOW, &session->ttyset) != 0) { - gpsd_log(&session->context->errout, LOG_ERROR, - "SER: error setting port attributes: %s, sourcetype: %d\n", - strerror(errno), session->sourcetype); - return; + /* strangely this fails on non-serial ports, but if + * we do not try, we get other failures. + * so ignore for now, as we always have, until it can + * be nailed down. + * + * gpsd_log(&session->context->errout, LOG_ERROR, + * "SER: error setting port attributes: %s, sourcetype: %d\n", + * strerror(errno), session->sourcetype); + * return; + */ } /* |