Added BufferCloser

This commit is contained in:
Jae Kwon
2015-10-17 22:41:05 -07:00
parent 82c65e423b
commit 14356a7739
2 changed files with 52 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func Create(label string, execPath string, args []string, inFile io.Reader, outF
proc.ExitState = exitError.ProcessState
}
}
proc.ExitState = proc.Cmd.ProcessState
proc.EndTime = time.Now() // TODO make this goroutine-safe
err = proc.OutputFile.Close()
if err != nil {