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