{
unsigned int i;
- i_set_failure_prefix("SERVER: ");
-
client_pids = NULL;
client_pids_count = 0;
if (client_pids[i] == 0) {
client_pids[i] = (pid_t)-1;
client_pids_count = 0;
- i_set_failure_prefix("CLIENT[%d]: ", i+1);
hostpid_init();
+ /* child: client */
+ i_set_failure_prefix("CLIENT[%u]: ", i + 1);
if (debug)
i_debug("PID=%s", my_pid);
- /* child: client */
/* wait a little for server setup */
i_sleep_msecs(100);
i_close_fd(&fd_listen);
exit(1);
}
}
- if (debug)
- i_debug("PID=%s", my_pid);
}
/* parent: server */
+ i_set_failure_prefix("SERVER: ");
+ if (debug)
+ i_debug("PID=%s", my_pid);
i_zero(&server_callbacks);
server_test(server_set);
io_loop_destroy(&ioloop);
+ i_unset_failure_prefix();
i_close_fd(&fd_listen);
-
test_clients_kill_all();
i_free(client_pids);
}