diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2013-10-17 05:54:25 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2013-10-17 05:54:25 -0400 |
commit | dc201907f3bebfafc3f3eedee518a7a601da4b7d (patch) | |
tree | f81562d1a15a2e6a8d84c2cdebfe107b1cdfe5cf /ntpshm.c | |
parent | 8321b23bb725b098ae1f2220e777dbcfe827d393 (diff) | |
download | gpsd-dc201907f3bebfafc3f3eedee518a7a601da4b7d.tar.gz |
Clean up the KPPS initialization wait.
Diffstat (limited to 'ntpshm.c')
-rw-r--r-- | ntpshm.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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) */ |