Remove RUN global, doesn't work
This commit is contained in:
parent
8841e351d0
commit
75c916d6c2
1 changed files with 1 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue