MCPcopy Index your code
hub / github.com/containerd/containerd / PID

Method PID

core/runtime/v2/shim.go:530–539  ·  view source on GitHub ↗

PID of the task

(ctx context.Context)

Source from the content-addressed store, hash-verified

528
529// PID of the task
530func (s *shimTask) PID(ctx context.Context) (uint32, error) {
531 response, err := s.task.Connect(ctx, &task.ConnectRequest{
532 ID: s.ID(),
533 })
534 if err != nil {
535 return 0, errgrpc.ToNative(err)
536 }
537
538 return response.TaskPid, nil
539}
540
541func (s *shimTask) delete(ctx context.Context, sandboxed bool, removeTask func(ctx context.Context, id string)) (*runtime.Exit, error) {
542 response, shimErr := s.task.Delete(ctx, &task.DeleteRequest{

Callers 1

WaitMethod · 0.95

Calls 2

ConnectMethod · 0.65
IDMethod · 0.65

Tested by

no test coverage detected