mirror of
https://github.com/CHN-beta/hpcstat.git
synced 2026-01-11 18:29:53 +08:00
some fix
This commit is contained in:
@@ -17,7 +17,7 @@ namespace hpcstat
|
||||
process = std::make_unique<bp::child>
|
||||
(program.string(), bp::args(args), bp::std_out > output, bp::std_err > stderr, bp::std_in < input);
|
||||
input << *stdin;
|
||||
input.close();
|
||||
input.pipe().close();
|
||||
}
|
||||
else process = std::make_unique<bp::child>
|
||||
(program.string(), bp::args(args), bp::std_out > output, bp::std_err > stderr, bp::std_in < bp::null);
|
||||
|
||||
Reference in New Issue
Block a user