summaryrefslogtreecommitdiffstats
path: root/sbin/hastd
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2012-06-11 19:20:59 +0000
committerhselasky <hselasky@FreeBSD.org>2012-06-11 19:20:59 +0000
commit6b0d4730f1699cbab3fd04bcf6c881521101bf6b (patch)
tree5545db3e95f170ce3dbf06bae40eb807e257d5d8 /sbin/hastd
parente6018a6dfd1e2a28b385e386e5ac589a3de116bd (diff)
downloadFreeBSD-src-6b0d4730f1699cbab3fd04bcf6c881521101bf6b.zip
FreeBSD-src-6b0d4730f1699cbab3fd04bcf6c881521101bf6b.tar.gz
Use the correct clock source when computing timeouts.
MFC after: 1 week
Diffstat (limited to 'sbin/hastd')
-rw-r--r--sbin/hastd/synch.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/hastd/synch.h b/sbin/hastd/synch.h
index 36e1927..6e4de9d 100644
--- a/sbin/hastd/synch.h
+++ b/sbin/hastd/synch.h
@@ -168,7 +168,7 @@ cv_timedwait(pthread_cond_t *cv, pthread_mutex_t *lock, int timeout)
return (false);
}
- error = clock_gettime(CLOCK_MONOTONIC, &ts);
+ error = clock_gettime(CLOCK_REALTIME, &ts);
PJDLOG_ASSERT(error == 0);
ts.tv_sec += timeout;
error = pthread_cond_timedwait(cv, lock, &ts);
OpenPOWER on IntegriCloud