diff options
author | tron <tron> | 2001-04-17 16:38:42 +0000 |
---|---|---|
committer | tron <tron> | 2001-04-17 16:38:42 +0000 |
commit | 21eaeafc1ea709a00d1fa674eb881839612a9590 (patch) | |
tree | 1877003616c2a14794144515751d340fa9c58beb /benchmarks | |
parent | 8f4f3434fec5a597a3290952bc330f6466951469 (diff) | |
download | pkgsrc-21eaeafc1ea709a00d1fa674eb881839612a9590.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')
-rw-r--r-- | benchmarks/netio/distinfo | 3 | ||||
-rw-r--r-- | benchmarks/netio/patches/patch-ab | 21 |
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; |