svn commit: r424989 - in head/games/xmris: . files
Jason E. Hale
jhale at FreeBSD.org
Mon Oct 31 09:12:48 UTC 2016
Author: jhale
Date: Mon Oct 31 09:12:47 2016
New Revision: 424989
URL: https://svnweb.freebsd.org/changeset/ports/424989
Log:
Fix 100% CPU utilization (runtime tested on FreeBSD 11.0, i386)
Bump PORTREVISION
PR: 211791
Submitted by: <steven at freebsd-bugzilla.sdwmail.homeunix.org>
MFH: 2016Q4
Modified:
head/games/xmris/Makefile
head/games/xmris/files/patch-timer.c
Modified: head/games/xmris/Makefile
==============================================================================
--- head/games/xmris/Makefile Mon Oct 31 09:08:29 2016 (r424988)
+++ head/games/xmris/Makefile Mon Oct 31 09:12:47 2016 (r424989)
@@ -3,7 +3,7 @@
PORTNAME= xmris
PORTVERSION= 4.04
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= games
MASTER_SITES= XCONTRIB/games
DISTNAME= ${PORTNAME}.${PORTVERSION}
Modified: head/games/xmris/files/patch-timer.c
==============================================================================
--- head/games/xmris/files/patch-timer.c Mon Oct 31 09:08:29 2016 (r424988)
+++ head/games/xmris/files/patch-timer.c Mon Oct 31 09:12:47 2016 (r424989)
@@ -9,3 +9,14 @@
#else
# ifdef __hpux /* hpux is a weird mixture of BSD & SYSV */
/* don't know if this is right */
+@@ -572,7 +572,10 @@ extern VOIDFUNC timer_wait FUNCARGVOID
+ else
+ {
+ while(!tickafter(now, timer.timeout))
++ {
++ usleep(tickdelta(timer.timeout, now) * TICKTIME);
+ gettick(&now);
++ }
+ timer.timeout = tickadd(timer.timeout, timer.delay);
+ point = -1;
+ }
More information about the svn-ports-all
mailing list