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:
parent
5526c9fb2b
commit
b42c5c9d55
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue