Fixed a bug where filedescriptors were not properly closed in the master connector processes, thanks to Delian

This commit is contained in:
Erik Zandvliet 2014-01-24 09:05:40 +01:00
parent 28db5700a4
commit 1ae4cff4ba
11 changed files with 11 additions and 0 deletions

View file

@ -346,6 +346,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 3
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -224,6 +224,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -367,6 +367,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -232,6 +232,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -198,6 +198,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -205,6 +205,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -201,6 +201,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -561,6 +561,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -237,6 +237,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -712,6 +712,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected

View file

@ -223,6 +223,7 @@ int main(int argc, char ** argv){
#if DEBUG >= 5
fprintf(stderr, "Spawned new process %i for socket %i\n", (int)myid, S.getSocket());
#endif
S.close();
}
}
} //while connected