/** * @brief Returns -1 if client asked to stop all tests or connection was lost or error. * 0 otherwise. */ int hosts_read (struct arglist *globals) { if (hosts_read_client (globals) < 0) { hosts_stop_all (); log_write ("Client abruptly closed the communication"); return -1; } if (hosts == NULL) return -1; hosts_read_data (); return 0; }
static void attack_sigterm() { hosts_stop_all(); wait_for_children1(); }