summaryrefslogtreecommitdiff
path: root/benchmarks/dbench/files/patch-dbench.c
diff options
context:
space:
mode:
authorPhilippe Audeoud <jadawin@FreeBSD.org>2011-01-08 16:13:25 +0000
committerPhilippe Audeoud <jadawin@FreeBSD.org>2011-01-08 16:13:25 +0000
commite54bcf9fe6a9bec268a18857d18884b25e2399f3 (patch)
treee6e2a59d5bd753c0c4658006c93c04ac38b9cdde /benchmarks/dbench/files/patch-dbench.c
parent- Update to 267 (diff)
- Add patch to fix a race condition
- Bump PORTREVISION PR: ports/153763 Submitted by: Julien Laffaye <kimelto _AT_ gmail.com> (maintainer)
Diffstat (limited to '')
-rw-r--r--benchmarks/dbench/files/patch-dbench.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/benchmarks/dbench/files/patch-dbench.c b/benchmarks/dbench/files/patch-dbench.c
new file mode 100644
index 000000000000..c5a1fb4e8390
--- /dev/null
+++ b/benchmarks/dbench/files/patch-dbench.c
@@ -0,0 +1,20 @@
+--- ./dbench.c.orig 2011-01-07 14:33:29.000000000 +0000
++++ ./dbench.c 2011-01-07 14:36:43.000000000 +0000
+@@ -304,7 +304,7 @@
+ exit(1);
+ }
+
+- semctl(barrier,0,IPC_RMID);
++ //semctl(barrier,0,IPC_RMID);
+
+ fn(&children[i*options.clients_per_process], options.loadfile);
+ _exit(0);
+@@ -334,7 +334,7 @@
+ exit(1);
+ }
+
+- semctl(barrier,0,IPC_RMID);
++ //semctl(barrier,0,IPC_RMID);
+
+ signal(SIGALRM, sig_alarm);
+ alarm(PRINT_FREQ);