summaryrefslogtreecommitdiff
path: root/benchmarks/netio
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2001-04-17 16:38:42 +0000
committertron <tron@pkgsrc.org>2001-04-17 16:38:42 +0000
commit7b87b833d4d3b1e247a33f242af61f333e8c6d01 (patch)
tree1877003616c2a14794144515751d340fa9c58beb /benchmarks/netio
parent418eec88e3df451a9657fc57c72e2851928c52ad (diff)
downloadpkgsrc-7b87b833d4d3b1e247a33f242af61f333e8c6d01.tar.gz
- Fix bug in send part which caused failures under Solaris and possibly
other non i386 NetBSD ports. - Don't print an error message on EINTR because this error is pretty normal if send() gets interrupt by SIGALRM.
Diffstat (limited to 'benchmarks/netio')
-rw-r--r--benchmarks/netio/distinfo3
-rw-r--r--benchmarks/netio/patches/patch-ab21
2 files changed, 23 insertions, 1 deletions
diff --git a/benchmarks/netio/distinfo b/benchmarks/netio/distinfo
index ead0df11146..dbd28214089 100644
--- a/benchmarks/netio/distinfo
+++ b/benchmarks/netio/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2001/04/17 12:54:10 tron Exp $
+$NetBSD: distinfo,v 1.3 2001/04/17 16:38:42 tron Exp $
SHA1 (netio113.zip) = f68a8476d3ef0f5b16e2e7829d6bb3c175ec2980
Size (netio113.zip) = 34 bytes
SHA1 (patch-aa) = 589aa32c759b973f374ab80270d586f3116e53a2
+SHA1 (patch-ab) = 36c05058f979ca2a7b52b255b0f1d8adc3f118bc
diff --git a/benchmarks/netio/patches/patch-ab b/benchmarks/netio/patches/patch-ab
new file mode 100644
index 00000000000..b8e6e218ca4
--- /dev/null
+++ b/benchmarks/netio/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.1 2001/04/17 16:38:43 tron Exp $
+
+--- netio.c.orig Wed Mar 28 13:17:28 2001
++++ netio.c Tue Apr 17 18:33:19 2001
+@@ -282,6 +282,7 @@
+ bTimeOver = 0;
+ signal(SIGALRM, on_alarm);
+ alarm(nSeconds);
++ return 0;
+ }
+
+ int StartTimer(TIMER *nStart)
+@@ -603,7 +604,7 @@
+ {
+ while (!bTimeOver)
+ {
+- if ((rc = send(server, cBuffer, tSizes[i], 0)) != tSizes[i] && errno != 0)
++ if ((rc = send(server, cBuffer, tSizes[i], 0)) != tSizes[i] && errno != 0 && errno != EINTR)
+ {
+ psock_errno("send()");
+ break;