Remove RUN global, doesn't work

This commit is contained in:
flyingscorpio@clevo 2022-10-21 16:42:32 +02:00
parent 8841e351d0
commit 75c916d6c2

View file

@ -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 {