Here是令人困惑的页面。搜索“/ bin / ps”。 该行是:
ProcessHandle ph(launch("/bin/ps", args, &outPipe, 0, 0));
不应该是:
ProcessHandle ph(launch("/bin/ps", args, 0, &outPipe, 0));
答案 0 :(得分:2)
是的,你的观察得到了证实 - 最后三个args的顺序确实是stdin,stdout,stderr,所以docs中的outPipe错误地被作为输入传递。我没有比你更多的想法,这个文档错误怎么可能被忽视了! - )
答案 1 :(得分:1)
这将在1.3.6中修复。