diff --git a/src/server.c b/src/server.c index f749b04..9ada393 100644 --- a/src/server.c +++ b/src/server.c @@ -9,9 +9,6 @@ #include "common.h" -/* Boolean for the accepting loop */ -int RUN = 1; - /* Global array that will contain a struct per client: * id * pipe @@ -84,7 +81,7 @@ int main(void) { } /* Loop to accept incoming connections */ - while (RUN) { + while (1) { if ((client_sockid = accept(serv_sockid, (struct sockaddr *) &client_socket, (socklen_t *) &addr_len)) < 0) { perror("accept"); } else {