Re: logd vs. Polygraph

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Wed, 22 Aug 2001 09:50:31 +0200

Robert Collins wrote:

> Ouch. I wonder if squid is swallowing them itself (it has to keep the
> log pipe open to replace the log helper seamlessly.) I need to look into
> the select/poll stuff in more detail - unless Henrik or Adrian have any
> insight. (We open the fds using pipe(), then don't do anything with them
> other than pass them to the log helper. One of the ends gets marked as
> ipc.)

Only if you have installed a read select handler for the read fd, and are
actually reading stuff from there.

My guess is that the log pipe is made non-blocking. A simple test is to
"killall -STOP logd" and make sure Squid hangs as soon as the pipe buffer is
full.

--
Henrik
Received on Wed Aug 22 2001 - 02:06:16 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:15 MST