make echosrv independant from common macros

This commit is contained in:
yrutschle 2021-09-27 13:01:20 +02:00
parent 4f0f5017bc
commit 16bf1a6aca

View File

@ -100,7 +100,10 @@ void tcp_echo(struct listen_endpoint* listen_socket)
{
while (1) {
int in_socket = accept(listen_socket->socketfd, 0, 0);
CHECK_RES_DIE(in_socket, "accept");
if (in_socket == -1) {
perror("tcp_echo:accept");
exit(1);
}
if (!fork())
{