bufferlist in;
if (cmd.size() == 1 && cmd[0] == "print") {
*g.log << "----" << std::endl;
- TEMP_FAILURE_RETRY(::write(1, in.c_str(), in.length()));
+ fwrite(in.c_str(), in.length(), 1, stdout);
*g.log << "---- (" << in.length() << " bytes)" << std::endl;
return 0;
}
if (outfile) {
if (strcmp(outfile, "-") == 0) {
*g.log << "----" << std::endl;
- TEMP_FAILURE_RETRY(::write(1, in.c_str(), in.length()));
+ fwrite(in.c_str(), in.length(), 1, stdout);
*g.log << "---- (" << in.length() << " bytes)" << std::endl;
}
else {