diff --git a/execution/service.go b/execution/service.go index 5636c5b..524ce99 100644 --- a/execution/service.go +++ b/execution/service.go @@ -35,7 +35,7 @@ func New(ctx context.Context, executor Executor) (*Service, error) { // generate exit event for all processes, (generate event for init last) processes := c.Processes() processes = append(processes[1:], processes[0]) - for _, p := range c.Processes() { + for _, p := range processes { if p.Status() != Stopped { p.Signal(os.Kill) }