run: provide proper stdout/stdin/stderr redirection via popen
run: provide proper stdout/stdin/stderr redirection via popen

Former-commit-id: 406ea8a0fdbb2ea0b54c488c32fc893fff49bbf9
Former-commit-id: c31c117c8b0a6808669e8e33cefdf48193400106 [formerly 40aea02dd84398b38d1f5ff1e9b23aa9ee61c67c] [formerly 438bb0f8883033c779fc1dc1301cca238c0de642 [formerly 564f58a14808a9259b982726be8a7ae592c18666]]
Former-commit-id: 0a38f861b6bc356be5688d5283b5cd14082affc4 [formerly ff3ac383170a9374c2f75f40f80c69969dd3f916]
Former-commit-id: 02937a1b422cc04d387da7330f50e7c1d6e62b1b
PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild,PolyJIT/benchbuild