Re: external_acl_helper - something wrong...

From: Hegedus Ervin <airween@dont-contact.us>
Date: Sun, 22 Aug 2004 10:03:59 +0200

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
 
Received on Sun Aug 22 2004 - 02:03:57 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Sep 01 2004 - 12:00:04 MDT