[syslog-ng]Re: Having trouble with the options syntax for file permissions (fwd)

Balazs Scheidler bazsi@balabit.hu
Fri, 15 Feb 2002 12:16:12 +0100

On Thu, Feb 14, 2002 at 08:06:18PM +0000, Leonard Mills wrote:
> laszlo.murvai-buzogany@gt-systems.hu wrote on Thu Feb 14 at 09:59:19 2002:
> >I have had the same problem before, here is the thing you need:
> >destination trash { file("/dev/null" perm(0666) ); };
> >That's how it works for me.
> Thanks, but this won't  work for me.  It doesn't drop core, but the
> daemon dies without writing anything to the log file(s).

as it seems your OS doesn't allow setting /dev/null to nonblocking mode and it
is fatal as of now:

void io_set_nonblocking(int fd)
        if (fcntl(fd, F_SETFL, fcntl(fd, F_GETFL) | O_NONBLOCK) < 0)
                fatal("io_set_nonblocking: fcntl() failed, %z", strerror(errno));

what platform are you running syslog-ng?

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