934328d8ea
Signed-off-by: Amit Krishnan <krish.amit@gmail.com> Signed-off-by: Alexander Morozov <lk4d4@docker.com>
27 lines
528 B
Go
27 lines
528 B
Go
package libcontainerd
|
|
|
|
import (
|
|
"syscall"
|
|
|
|
containerd "github.com/docker/containerd/api/grpc/types"
|
|
"github.com/opencontainers/runtime-spec/specs-go"
|
|
)
|
|
|
|
func getRootIDs(s specs.Spec) (int, int, error) {
|
|
return 0, 0, nil
|
|
}
|
|
|
|
func systemPid(ctr *containerd.Container) uint32 {
|
|
var pid uint32
|
|
for _, p := range ctr.Processes {
|
|
if p.Pid == InitFriendlyName {
|
|
pid = p.SystemPid
|
|
}
|
|
}
|
|
return pid
|
|
}
|
|
|
|
// setPDeathSig sets the parent death signal to SIGKILL
|
|
func setSysProcAttr(sid bool) *syscall.SysProcAttr {
|
|
return nil
|
|
}
|