[syslog-ng] [PATCH] afsocket: Fix unix-dgram initialisation

Gergely Nagy algernon at balabit.hu
Fri May 4 14:02:00 CEST 2012


Balazs Scheidler <bazsi at balabit.hu> writes:

> hmm... this is exactly the case where a variable with a better name
> would have prevented some effort.
>
> self->fd is the _listener_ fd which a SOCK_DGRAM style socket lacks.
> That's why it is set to -1
>
> The dgram socket is processed as if it was a single connection, a couple
> of lines below this hunk, there's a call to
> afsocket_sd_process_connection(), which should initialize an
> AFSocketSourceConnection object, which in turn should start polling that
> fd.
>
> What was your intent here?

Turns out, whatever I saw, must have been a ghost: I can't reproduce the
problem anymore, so please ignore this patch.

-- 
|8]



More information about the syslog-ng mailing list