about summary refs log tree commit homepage
path: root/ext/kgio/writev.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/kgio/writev.c')
-rw-r--r--ext/kgio/writev.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/kgio/writev.c b/ext/kgio/writev.c
index 736aa6f..d3ec53e 100644
--- a/ext/kgio/writev.c
+++ b/ext/kgio/writev.c
@@ -249,6 +249,8 @@ static VALUE my_writev(VALUE io, VALUE ary, int io_wait)
         } while (writev_check(&a, n, "writev", io_wait) != 0);
         rb_str_resize(a.vec_buf, 0);
 
+        if (TYPE(a.buf) != T_SYMBOL)
+                kgio_autopush_write(io);
         return a.buf;
 }