This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: syslog and LOG_KERN broken
On Mon, Mar 20, 2000 at 02:51:44AM +0100, Matthias Urlichs wrote:
> Hi,
>
> "Dr. Werner Fink":
> > Hmmm ... the klogd of sysklogd-1.3-33 has its own syslog() which is
> > a copy of an older syslog() libc5/glibc
>
> ... and which is broken.
>
> For proof, restart syslogd. Notice that klogd doesn't log any more;
> you'll have to restart klogd to fix it.
>
> (I just observed this on RedHat 5.1.)
>
> That kind of bug, long-solved in the glibc version of syslog(), is
> the reason why "has its own ANYTHING" is a bad idea in general.
Yep, fully agreed. This is exactly the reason why the interface
syslog() glibc should be usable for klogd. Currently it is not
possible to use syslog() from glibc, see misc/syslog.c, function
openlog_internal() which is called by openlog() ... as long as the
integer logfac can't be 0 (only) for klogd the klogd can't use the
syslog interface of glibc.
Werner
--
Dr. Werner Fink, SuSE GmbH, Schanzaeckerstr. 10, 90443 Nuernberg
Germany http://www.suse.de/ and USA http://www.suse.com/
mail:werner@suse.de http://www.suse.de/~werner/ fax:+49-911-3206727
------------ \/\/ o r l d - \/\/ i d e - \/\/ a i t i n g -----------