From eb5a9930e22d98dd3d4dda2873ec7fc6b4d5a717 Mon Sep 17 00:00:00 2001
From: Arne Goedeke <el@laramies.com>
Date: Sun, 24 Sep 2017 10:59:07 +0200
Subject: [PATCH] Stdio.Buffer: added more missing io_trigger_output calls

add_padding() and add_bignum() did not trigger the fd output callback.
---
 src/modules/_Stdio/buffer.cmod | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/modules/_Stdio/buffer.cmod b/src/modules/_Stdio/buffer.cmod
index 8ae005b4f9..db17811d1d 100644
--- a/src/modules/_Stdio/buffer.cmod
+++ b/src/modules/_Stdio/buffer.cmod
@@ -740,6 +740,7 @@ PIKECLASS Buffer
         *d++ ^= 0xff; /* pad, but that is 0xff */
       mpz_clear(&tmp);
     }
+    io_trigger_output( io );
   }
 
   static void io_add_int_uc( Buffer *io, ptrdiff_t i, size_t bytes )
@@ -1229,6 +1230,7 @@ PIKECLASS Buffer
     memset( io_add_space( io, nbytes,0), byte, nbytes );
     io->len += nbytes;
     Pike_sp -= args;
+    io_trigger_output( io );
     ref_push_object( io->this );
   }
 
-- 
GitLab