- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isProcessRunningInHost (0.2 sec)
-
pkg/kubelet/cm/container_manager_linux.go
cpuLimit += cont.cpuMillicores } return v1.ResourceList{ v1.ResourceCPU: *resource.NewMilliQuantity( cpuLimit, resource.DecimalSI), } } func isProcessRunningInHost(pid int) (bool, error) { // Get init pid namespace. initPidNs, err := os.Readlink("/proc/1/ns/pid") if err != nil { return false, fmt.Errorf("failed to find pid namespace of init process") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 21 10:18:16 UTC 2024 - 35.1K bytes - Viewed (0)