All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 2905e2cd authored by Robert Ricci's avatar Robert Ricci

Fix a bug that was preventing writing to multiple files.

parent f26a255d
...@@ -813,7 +813,7 @@ int main (int argc, char **argv) { ...@@ -813,7 +813,7 @@ int main (int argc, char **argv) {
args->fd = fd; args->fd = fd;
args->cli = 0; args->cli = 0;
args->interval = filetime; args->interval = filetime;
client_connected[0] = 1; client_connected[i] = 1;
active = 1; active = 1;
pthread_create(&thread,NULL,feedclient,args); pthread_create(&thread,NULL,feedclient,args);
pthread_cond_broadcast(&cond); pthread_cond_broadcast(&cond);
...@@ -830,7 +830,7 @@ int main (int argc, char **argv) { ...@@ -830,7 +830,7 @@ int main (int argc, char **argv) {
exit(1); exit(1);
} }
i = 1; //i++;
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(int)) < 0) if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(int)) < 0)
perror("SO_REUSEADDR"); perror("SO_REUSEADDR");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment