Go to the documentation of this file.
46 std::ostringstream
out;
52 const int errno_saved = errno;
62 memset(&act, 0,
sizeof(act));
65 sigaction(SIGINT, &act,
nullptr);
66 sigaction(SIGTERM, &act,
nullptr);
73 }
else if (WIFSIGNALED(
status)) {
81 int main(
int argc,
char** argv) {
85 std::string bin_dir = my_bin.substr(0, my_bin.rfind(
'/'));
87 std::ostringstream
env;
95 std::vector<std::string>
args = {bin_dir +
"/qps_worker",
"-driver_port",
100 env <<
"localhost:" << driver_port;
105 std::vector<std::string>
args = {bin_dir +
"/qps_json_driver"};
106 for (
int i = 1;
i < argc;
i++) {
107 args.push_back(argv[
i]);
112 if (driver_join_status != 0) {
122 if (worker_status != 0) {
return memset(p, 0, total)
int main(int argc, char **argv)
#define T(upbtypeconst, upbtype, ctype, default_value)
static void register_sighandler()
GPRAPI void gpr_log(const char *file, int line, gpr_log_severity severity, const char *format,...) GPR_PRINT_FORMAT_CHECK(4
int grpc_pick_unused_port_or_die(void)
constexpr auto kNumWorkers
static SubProcess * g_workers[kNumWorkers]
static void LogStatus(int status, const char *label)
static void sighandler(int)
std::string as_string(const T &val)
static SubProcess * g_driver
void gpr_setenv(const char *name, const char *value)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:25