summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-17 05:54:25 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-17 05:54:25 -0400
commitdc201907f3bebfafc3f3eedee518a7a601da4b7d (patch)
treef81562d1a15a2e6a8d84c2cdebfe107b1cdfe5cf /ntpshm.c
parent8321b23bb725b098ae1f2220e777dbcfe827d393 (diff)
downloadgpsd-dc201907f3bebfafc3f3eedee518a7a601da4b7d.tar.gz
Clean up the KPPS initialization wait.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/ntpshm.c b/ntpshm.c
index 3a46a38e..089fa40b 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -568,10 +568,10 @@ static int init_kernel_pps(struct gps_device_t *session) {
}
void gpsd_await_pps_initialization(void)
-/* wait for all threads seeking kernel PPS to open /dev/pps devuces */
+/* wait for all threads seeking kernel PPS to open /dev/pps devices */
{
- /* wait only this many sec if some thread croaked too early */
- static int dropdead = 10;
+ /* wait only this many intervals if some thread croaked too early */
+ static int dropdead = 100;
gpsd_report(session->context->debug, LOG_WARN,
"waiting on KPPS initalization...\n");
@@ -588,6 +588,10 @@ void gpsd_await_pps_initialization(void)
/* +unrecog */
usleep(1000)
}
+
+ gpsd_report(session->context->debug, LOG_WARN,
+ "wait for KPPS initalization timed out\n");
+
}
#endif /* defined(HAVE_SYS_TIMEPPS_H) */