Commit 09a12244 authored by Jason Rhinelander's avatar Jason Rhinelander

random: flush output

The "Executing ..." line is being lost from ssh connections, I suspect
because of the lack of flushing.
parent b3108e15
......@@ -205,13 +205,13 @@ int main (int argc, const char* argv[]) {
std::cout << " " << arg;
}
exec_argv[i] = nullptr;
std::cout << "\n";
std::cout << std::endl;
}
execvp(exec_argv[0], const_cast<char**>(exec_argv));
// Getting here means exec failed!
std::cerr << "Failed to execute `" << exec_argv[0] << "': " << std::strerror(errno) << "\n";
std::cerr << "Failed to execute `" << exec_argv[0] << "': " << std::strerror(errno) << std::endl;
std::exit(errno);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment