Skip to content

Commit

Permalink
Kill should still work in stopped state.
Browse files Browse the repository at this point in the history
Signed-off-by: Lantao Liu <lantaol@google.com>
  • Loading branch information
Random-Liu committed Dec 4, 2018
1 parent 2175efc commit 7949998
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions runtime/v1/linux/proc/init_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import (
"syscall"

"github.com/containerd/console"
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/runtime/proc"
"github.com/containerd/fifo"
runc "github.com/containerd/go-runc"
Expand Down Expand Up @@ -407,7 +406,7 @@ func (s *stoppedState) Delete(ctx context.Context) error {
}

func (s *stoppedState) Kill(ctx context.Context, sig uint32, all bool) error {
return errdefs.ToGRPCf(errdefs.ErrNotFound, "process %s not found", s.p.id)
return s.p.kill(ctx, sig, all)
}

func (s *stoppedState) SetExited(status int) {
Expand Down

0 comments on commit 7949998

Please sign in to comment.