//go:build !linux package cgroup import ( "errors" "os/exec" ) // The placement shim needs cgroup v2, so it is linux only. // shimAvailable is true here only while FakePlacementForTest stands in for // the shim, which it never runs. func shimAvailable() bool { return shimForcedForTest.Load() } func runShim([]string) int { return 127 } func runProbe() int { return 127 } func (m *Manager) startViaShim(dir string, cmd *exec.Cmd, before func() error) (refused bool, err error) { return false, &placementError{errors.New("placement before exec needs linux")} }