summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/kern/sosplice/funcs.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/sys/kern/sosplice/funcs.pl b/regress/sys/kern/sosplice/funcs.pl
index 19c68b95e55..aab739f3a62 100644
--- a/regress/sys/kern/sosplice/funcs.pl
+++ b/regress/sys/kern/sosplice/funcs.pl
@@ -1,4 +1,4 @@
-# $OpenBSD: funcs.pl,v 1.6 2014/04/24 09:05:10 bluhm Exp $
+# $OpenBSD: funcs.pl,v 1.7 2014/08/18 21:51:45 bluhm Exp $
# Copyright (c) 2010-2013 Alexander Bluhm <bluhm@openbsd.org>
#
@@ -205,6 +205,7 @@ sub relay_copy_stream {
}
my $read = sysread(STDIN, $buf,
$max && $max < $size ? $max : $size);
+ next if !defined($read) && $!{EAGAIN};
defined($read)
or die ref($self), " sysread at $len failed: $!";
if ($read == 0) {