summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index c8cb76ba7f..9a7d6e8864 100644
--- a/io.c
+++ b/io.c
@@ -6392,7 +6392,7 @@ retry_sendfile:
if (copy_stream_wait_write(stp) == -1)
return -1;
if (RUBY_VM_INTERRUPTED(stp->th))
- return;
+ return -1;
goto retry_sendfile;
}
stp->syserr = "sendfile";