Skip to content

Commit 5d2bb0b

Browse files
committed
document that we don't need to close pipes if command fails to start
1 parent 5589d40 commit 5d2bb0b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

executor/executable/controllabletask.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ func (t *ControllableTask) doLaunchTask(taskCmd *exec.Cmd, launchStartTime time.
147147
Error("failed to run task")
148148

149149
t.sendStatus(t.knownEnvironmentId, mesos.TASK_FAILED, err.Error())
150-
// fixme: shouldn't we also close pipes, as we do in some other error cases later?
150+
// no need to close IO pipes, Cmd.Start does it on failure
151151
return
152152
}
153153
log.WithFields(defaultLogFields).Debug("task launched")

0 commit comments

Comments
 (0)