We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e970ce6 commit 1ed8908Copy full SHA for 1ed8908
1 file changed
executor/executable/controllabletask.go
@@ -185,7 +185,7 @@ func (t *ControllableTask) Launch() error {
185
break
186
} else if reachedState == "DONE" || reachedState == "ERROR" {
187
// something went wrong, the device moved to DONE or ERROR on startup
188
- _ = syscall.Kill(-taskCmd.Process.Pid, syscall.SIGKILL)
+ _ = syscall.Kill(int(response.GetPid()), syscall.SIGKILL)
189
190
log.WithField("task", t.ti.Name).Debug("task killed")
191
t.sendStatus(mesos.TASK_FAILED, "task reached wrong state on startup")
0 commit comments