From 75c916d6c2c7e8a11d997ed62c67d22945be7f17 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@clevo" Date: Fri, 21 Oct 2022 16:42:32 +0200 Subject: [PATCH] Remove RUN global, doesn't work --- src/server.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 {