On Tue, 24 Apr 2007, Henrik Nordstrom wrote:
Hmm.. it's fine (and probably preferred) for the external daemon to use select and fd_set. This restriction is just on code linked into the squid binary.
external daemon does not use select. it is a very simple loop:
while (fgets(buf, UNLINK_BUF_LEN, stdin)) {
if ((t = strchr(buf, '\n')))
*t = '\0';
x = unlink(buf);
if (x < 0)
printf("ERR\n");
else
printf("OK\n");
}
