[syslog-ng]Problem with 1.6.3 on Solaris. Message

Dmitri Smirnov syslog-ng@lists.balabit.hu
Thu, 13 May 2004 09:40:53 -0700


Thank you,

The patch fixed the problem with an error message about STREAMS.

Dmitri=20

-----Original Message-----
From: Balazs Scheidler [mailto:bazsi@balabit.hu]=20
Sent: Thursday, May 13, 2004 4:32 AM
To: syslog-ng@lists.balabit.hu
Subject: Re: [syslog-ng]Problem with 1.6.3 on Solaris. Message

Can you test if this patch fixes it? For me it seems to work.

diff -u -r1.16.4.1 afstreams.c
--- src/afstreams.c     10 Mar 2004 18:43:28 -0000      1.16.4.1
+++ src/afstreams.c     13 May 2004 11:31:10 -0000
@@ -175,6 +175,7 @@
 struct nonblocking_fd *io_stream_get(struct io_backend *backend,
                                     int fd,
                                     UINT8 *hostname_re,
+                                    UINT32 max_log_line,
                                     struct log_handler *pipe)  {
        NEW(stream_fd, f);
@@ -184,6 +185,7 @@
        f->super.read =3D stream_read_callback;
        f->super.want_read =3D 1;
        f->pipe =3D pipe;
+       f->max_log_line =3D max_log_line;
        if (hostname_re =3D=3D NULL)
                regcomp(&f->bad_hostname, "^$", REG_NOSUB |
REG_EXTENDED);
        else
@@ -239,7 +241,7 @@
                        close(fd);
                        return ST_FAIL | ST_QUIT;
                }
-               self->stream_fd =3D io_stream_get(cfg->backend, fd,
cfg->bad_hostname, c);
+               self->stream_fd =3D io_stream_get(cfg->backend, fd,=20
+ cfg->bad_hostname, cfg->log_msg_size, c);
 =20
                REMEMBER_RESOURCE(cfg->resources,
&self->stream_fd->super);
 =20


--
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C
8EB1