[syslog-ng] syslog-ng 2.0.4 hang
Geller, Sandor (IT)
Sandor.Geller at morganstanley.com
Wed Jul 18 17:21:42 CEST 2007
Hi,
> Here's the fix, that I've commited now. Can you check if it
> indeed fixes
> the problem? Thanks.
>
> diff --git a/src/logreader.c b/src/logreader.c
> index e797223..c7ddf83 100644
> --- a/src/logreader.c
> +++ b/src/logreader.c
> @@ -323,8 +323,10 @@ log_reader_fetch_log(LogReader *self, FDRead *fd)
> {
> log_reader_iterate_buf(self, NULL, FALSE, &msg_count);
>
> - /* we still have something */
> - if (self->ofs != 0)
> + /* we still have something that could not be emptied,
> or multiread is
> + * disabled and we did not check readability when we came here.
> + */
> + if (self->ofs != 0 || (self->flags & LR_NOMREAD))
> return TRUE;
> }
Confirmed, this patch indeed fixed the problem.
Thanks,
Sandor
--------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.
More information about the syslog-ng
mailing list