summaryrefslogtreecommitdiff
path: root/structs.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2019-06-15 16:37:05 -0700
committerJeff Carr <[email protected]>2019-06-15 16:37:05 -0700
commit2806f41841a3e8599ac44570180e76a3b96b6f05 (patch)
treedb8f8e42f1f303bf1b57f7bc9931f302601de438 /structs.go
parenta3042062d872b4e30f9f396339d5cb8e4ddb9b8c (diff)
a new struct to track file handles for processes
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'structs.go')
-rw-r--r--structs.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/structs.go b/structs.go
index 22f8a1e..b5726e8 100644
--- a/structs.go
+++ b/structs.go
@@ -12,8 +12,11 @@ var readBufferSize int
type File struct {
Name string
BufferSize int
- FbytesBuffer bytes.Buffer
+ Buffer *bytes.Buffer
Fbytes []byte
+ TotalCount int
+ Empty bool
+ Dead bool
Fio io.ReadCloser // := process.StdoutPipe()
Fbufio *bufio.Reader // := bufio.NewReader(pOUT)