Otherwise the tests block forever, even if the child exits.
Signed-off-by: Daiki Ueno <ueno@gnu.org>
if (child) {
/* We are the parent */
+ close(sockets[1]);
server(sockets[0], rounds, prio);
waitpid(child, &status, 0);
check_wait_status(status);
} else {
/* We are the child */
+ close(sockets[0]);
client(sockets[1], resume, rounds, prio);
exit(0);
}
if (child) {
/* We are the parent */
+ close(sockets[1]);
server(sockets[0], resumption_should_succeed, rounds, prio);
waitpid(child, &status, 0);
check_wait_status(status);
} else {
/* We are the child */
+ close(sockets[0]);
client(sockets[1], resumption_should_succeed, rounds, prio);
exit(0);
}