mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 16:29:21 +00:00
Merge pull request #21417 from yujuhong/docker_container
Auto commit by PR queue bot
This commit is contained in:
commit
a39b62bb22
@ -357,7 +357,7 @@ func isProcessRunningInHost(pid int) (bool, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func getPidsForProcess(name string) ([]int, error) {
|
func getPidsForProcess(name string) ([]int, error) {
|
||||||
out, err := exec.Command("pidof", "name").Output()
|
out, err := exec.Command("pidof", name).Output()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return []int{}, fmt.Errorf("failed to find pid of %q: %v", name, err)
|
return []int{}, fmt.Errorf("failed to find pid of %q: %v", name, err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user