MCPcopy
hub / github.com/containerd/containerd / Kill

Method Kill

core/runtime/v2/process.go:42–52  ·  view source on GitHub ↗
(ctx context.Context, signal uint32, _ bool)

Source from the content-addressed store, hash-verified

40}
41
42func (p *process) Kill(ctx context.Context, signal uint32, _ bool) error {
43 _, err := p.shim.task.Kill(ctx, &task.KillRequest{
44 Signal: signal,
45 ID: p.shim.ID(),
46 ExecID: p.id,
47 })
48 if err != nil {
49 return errgrpc.ToNative(err)
50 }
51 return nil
52}
53
54func statusFromProto(from tasktypes.Status) runtime.Status {
55 var status runtime.Status

Callers

nothing calls this directly

Calls 2

KillMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected