if StderrKeep {
fdStderr, err = os.OpenFile(
path.Join(redoDir, tgt+LogSuffix),
if StderrKeep {
fdStderr, err = os.OpenFile(
path.Join(redoDir, tgt+LogSuffix),
fields := []recfile.Field{
{Name: "Build", Value: BuildUUID},
{Name: "PID", Value: strconv.Itoa(cmd.Process.Pid)},
fields := []recfile.Field{
{Name: "Build", Value: BuildUUID},
{Name: "PID", Value: strconv.Itoa(cmd.Process.Pid)},
- err = os.Rename(fdDep.Name(), path.Join(redoDir, tgt+DepSuffix))
+ fdDepPath = path.Join(redoDir, tgt+DepSuffix)
+ err = os.Rename(fdDep.Name(), fdDepPath)