提交 41f99949 编写于 作者: S shirou

Merge pull request #141 from ovear/master

fix callps command generate error
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册