need to make it grab all the remaining output when the pid exits

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-04-07 15:56:34 -07:00
parent 5526c9fb2b
commit b42c5c9d55
1 changed files with 2 additions and 2 deletions

View File

@ -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()