From b42c5c9d55826211d0c442c23e2cc939b2017542 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 7 Apr 2019 15:56:34 -0700 Subject: [PATCH] need to make it grab all the remaining output when the pid exits Signed-off-by: Jeff Carr --- random-output/shell.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/random-output/shell.go b/random-output/shell.go index 3938b06..ff3cbeb 100644 --- a/random-output/shell.go +++ b/random-output/shell.go @@ -47,8 +47,8 @@ func shell(cmdline string, count int) { count, err = nbrerr.Read(oneByte) if (err != nil) { - oneByte = make([]byte, 10) - count, err = nbrerr.Read(oneByte) + oneByte = make([]byte, 100) + count, err = nbr.Read(oneByte) f.Write([]byte(string(oneByte))) f.Flush()