svn commit: r236909 - head/sbin/hastd
Hans Petter Selasky
hselasky at FreeBSD.org
Mon Jun 11 19:21:00 UTC 2012
Author: hselasky
Date: Mon Jun 11 19:20:59 2012
New Revision: 236909
URL: http://svn.freebsd.org/changeset/base/236909
Log:
Use the correct clock source when computing timeouts.
MFC after: 1 week
Modified:
head/sbin/hastd/synch.h
Modified: head/sbin/hastd/synch.h
==============================================================================
--- head/sbin/hastd/synch.h Mon Jun 11 19:09:55 2012 (r236908)
+++ head/sbin/hastd/synch.h Mon Jun 11 19:20:59 2012 (r236909)
@@ -168,7 +168,7 @@ cv_timedwait(pthread_cond_t *cv, pthread
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);
More information about the svn-src-all
mailing list