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) {
args->fd = fd;
args->cli = 0;
args->interval = filetime;
client_connected[0] = 1;
client_connected[i] = 1;
active = 1;
pthread_create(&thread,NULL,feedclient,args);
pthread_cond_broadcast(&cond);
......@@ -830,7 +830,7 @@ int main (int argc, char **argv) {
exit(1);
}
i = 1;
//i++;
if (setsockopt(sock, SOL_SOCKET, SO_REUSEADDR, &i, sizeof(int)) < 0)
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