Kill should still work in stopped state.

Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
Lantao Liu 2018-12-03 16:51:54 -08:00
parent 2175efcf99
commit 79499980e4

View File

@ -24,7 +24,6 @@ import (
"syscall" "syscall"
"github.com/containerd/console" "github.com/containerd/console"
"github.com/containerd/containerd/errdefs"
"github.com/containerd/containerd/runtime/proc" "github.com/containerd/containerd/runtime/proc"
"github.com/containerd/fifo" "github.com/containerd/fifo"
runc "github.com/containerd/go-runc" runc "github.com/containerd/go-runc"
@ -407,7 +406,7 @@ func (s *stoppedState) Delete(ctx context.Context) error {
} }
func (s *stoppedState) Kill(ctx context.Context, sig uint32, all bool) 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) { func (s *stoppedState) SetExited(status int) {