a new struct to track file handles for processes

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-06-15 16:37:05 -07:00
parent a3042062d8
commit 2806f41841
1 changed files with 4 additions and 1 deletions

View File

@ -12,8 +12,11 @@ var readBufferSize int
type File struct { type File struct {
Name string Name string
BufferSize int BufferSize int
FbytesBuffer bytes.Buffer Buffer *bytes.Buffer
Fbytes []byte Fbytes []byte
TotalCount int
Empty bool
Dead bool
Fio io.ReadCloser // := process.StdoutPipe() Fio io.ReadCloser // := process.StdoutPipe()
Fbufio *bufio.Reader // := bufio.NewReader(pOUT) Fbufio *bufio.Reader // := bufio.NewReader(pOUT)