Skip to content

Commit

Permalink
Merge pull request #141 from ovear/master
Browse files Browse the repository at this point in the history
fix callps command generate error
  • Loading branch information
shirou committed Feb 2, 2016
2 parents 9d8191d + a0692cc commit 41f9994
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions process/process_darwin.go
Expand Up @@ -415,9 +415,9 @@ func callPs(arg string, pid int32, threadOption bool) ([][]string, error) {
if pid == 0 { // will get from all processes.
cmd = []string{"-ax", "-o", arg}
} else if threadOption {
cmd = []string{"-ax", "-o", arg, "-M", "-p", strconv.Itoa(int(pid))}
cmd = []string{"-x", "-o", arg, "-M", "-p", strconv.Itoa(int(pid))}
} else {
cmd = []string{"-ax", "-o", arg, "-p", strconv.Itoa(int(pid))}
cmd = []string{"-x", "-o", arg, "-p", strconv.Itoa(int(pid))}
}
out, err := invoke.Command(bin, cmd...)
if err != nil {
Expand Down

0 comments on commit 41f9994

Please sign in to comment.