Fix voor xinetd problemen?

This commit is contained in:
Thulinma 2010-11-04 22:08:33 +01:00
parent 309f727f62
commit ceeef9b29e
4 changed files with 4 additions and 6 deletions

View file

@ -53,7 +53,7 @@ int main(){
#ifdef DEBUG
fprintf(stderr, "Starting processing...\n");
#endif
while (!feof(stdin)){
while (!feof(stdin) && std::cout.good()){
//select(1, &pollset, 0, 0, &timeout);
//only parse input from stdin if available or not yet init'ed
//FD_ISSET(0, &pollset) || //NOTE: Polling does not work? WHY?!? WHY DAMN IT?!?