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";