Fix finding pid of a process

pull/6/head
Yu-Ju Hong 2016-02-17 12:43:16 -08:00
parent 0866c377e9
commit 7061ba20bb
1 changed files with 1 additions and 1 deletions

View File

@ -357,7 +357,7 @@ func isProcessRunningInHost(pid int) (bool, error) {
}
func getPidsForProcess(name string) ([]int, error) {
out, err := exec.Command("pidof", "name").Output()
out, err := exec.Command("pidof", name).Output()
if err != nil {
return []int{}, fmt.Errorf("failed to find pid of %q: %v", name, err)
}