summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2012-04-04 15:49:28 -0700
committerGary E. Miller <gem@rellim.com>2012-04-04 15:49:28 -0700
commit4debaea5de11318f5ae9c48aba8bab6dac618d26 (patch)
tree0787df165cf03d0fbb81ebfbdb12b2820fc491bb /ntpshm.c
parentf4e508f55f23e8da53913b84926b2107a090122f (diff)
downloadgpsd-4debaea5de11318f5ae9c48aba8bab6dac618d26.tar.gz
Add an error out message for PPS thread.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ntpshm.c b/ntpshm.c
index 84956eec..0bb538cb 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -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);