Dear Henrik,

> >       while (1) {
> >               syslog(LOG_WARNING, "waiting datas...");
> >               fgets(input, sizeof(input), stdin);
> 
> This is better done
> 
>       while(fgets(input, sizeof(input), stdin) != NULL) {
thanks,
 
> You could also write to stderr.. the output ends up in cache.log.
it doesn't need...
 
> Most likely you have forgot to disable buffering of stdout. If this is 
> done printf and friends does not immediately print out the data but waits 
> for more data to be printed by your application (which won't happen).
> 
> 
>     setbuf(stdout, NULL);
yes, this was the error - i forget it...
(i find my bug in late night... :)

thank you:

airween
 

Reply via email to