From cde31a4b148190e6a3cba4d1ede5bcc283dbc684 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 17 Feb 2015 06:50:34 -0500 Subject: Don't talk to NTP when we're running inside the test harness All regression tests pass. --- ntpshm.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ntpshm.c b/ntpshm.c index 6d7bf2dd..4906d2e6 100644 --- a/ntpshm.c +++ b/ntpshm.c @@ -448,6 +448,10 @@ void ntpshm_link_deactivate(struct gps_device_t *session) void ntpshm_link_activate(struct gps_device_t *session) /* set up ntpshm storage for a session */ { + /* don't talk to NTP when we're running inside the test harness */ + if (session->sourcetype == source_pty) + return; + /* allocate a shared-memory segment for "NMEA" time data */ session->shm_clock = ntpshm_alloc(session->context); -- cgit v1.2.1