diff options
author | Gary E. Miller <gem@rellim.com> | 2012-04-04 15:49:28 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2012-04-04 15:49:28 -0700 |
commit | 4debaea5de11318f5ae9c48aba8bab6dac618d26 (patch) | |
tree | 0787df165cf03d0fbb81ebfbdb12b2820fc491bb /ntpshm.c | |
parent | f4e508f55f23e8da53913b84926b2107a090122f (diff) | |
download | gpsd-4debaea5de11318f5ae9c48aba8bab6dac618d26.tar.gz |
Add an error out message for PPS thread.
Diffstat (limited to 'ntpshm.c')
-rw-r--r-- | ntpshm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -708,8 +708,10 @@ static /*@null@*/ void *gpsd_ppsmonitor(void *arg) log = NULL; /*@ +ignoresigns */ - if (ioctl(session->gpsdata.gps_fd, TIOCMGET, &state) != 0) + if (ioctl(session->gpsdata.gps_fd, TIOCMGET, &state) != 0) { + gpsd_report(LOG_ERROR, "PPS ioctl(TIOCMGET) failed\n"); break; + } /*@ -ignoresigns */ state = (int)((state & PPS_LINE_TIOC) != 0); |