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);
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to