Show stdout from the child process as it happens.
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
cout << "Scrubbing" << endl;
error_code ec;
bp::ipstream is;
- bp::system("ceph osd deep-scrub all --block", bp::std_out > is, ec);
+ bp::child c("ceph osd deep-scrub all --block");
+ c.wait(ec);
if (ec) {
cout << "Deep scrub command failed! Error: " << ec.value() << " "
<< ec.message() << endl;
exit(ec.value());
}
- cout << is.rdbuf() << endl;
}
const int LazyOmapStatsTest::find_matches(string& output, regex& reg) const