/* * Connect to all remote clients and exchange run statistics. * Any errors encountered by the slave are also received. */ static uint64_t say_goodbyes_and_close(goodbye_stat_t *gtotal, int timeout) { int i; print_goodbye_stat_header(); for (i = 0; i < no_slaves; i++) { /* * we continue on error, as there might be * other slaves. We do not consider a * failure to exchange goodbye's a reason to * exit with error. */ (void) say_goodbye(gtotal, slaves[i], timeout); destroy_protocol(slaves[i]->type, slaves[i]); slaves[i] = NULL; } if (no_slaves > 1) { (void) print_goodbye_stat("Total", gtotal); } no_slaves = 0; return (0); }
int main(){ const char* name="Test"; say_hello(name); //say_hi(name); say_goodbye(name); //say_bye(name); puts(" test succeded "); return 0; }