From 7b87b833d4d3b1e247a33f242af61f333e8c6d01 Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 17 Apr 2001 16:38:42 +0000 Subject: - 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. --- benchmarks/netio/distinfo | 3 ++- benchmarks/netio/patches/patch-ab | 21 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 benchmarks/netio/patches/patch-ab (limited to 'benchmarks') 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; -- cgit v1.2.3