* d/rules: Add build-{arch,indep} targets as aliases to build
* Bring d/copyright more in sync with this distfile’s reality
* d/control: Reword package description. (Closes: #631826)
+ * If sleeping at exit, sleep another 20 ms (2 HZ), to avoid
+ possible race conditions. (Should work around LP: #12230)
- -- Thorsten Glaser <tg@mirbsd.de> Thu, 28 Jul 2011 13:41:39 +0000
+ -- Thorsten Glaser <tg@mirbsd.de> Thu, 28 Jul 2011 15:28:22 +0000
cvs (2:1.12.13+real-5) unstable; urgency=low
long s;
long us;
+ if (time (&t) > desttime) return;
+
while (time (&t) <= desttime)
{
#ifdef HAVE_GETTIMEOFDAY
(void)nanosleep (&ts, NULL);
}
}
+
+ /* sleep another 20 ms (2 HZ) to avoid races */
+ {
+ struct timespec ts;
+ ts.tv_sec = s;
+ ts.tv_nsec = us * 1000;
+ (void)nanosleep (&ts, NULL);
+ }
}