[4489] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Syslogd bug: Too many open files

daemon@ATHENA.MIT.EDU (Jos Vos)
Fri Nov 15 06:37:27 1996

To: redhat-list@redhat.com
Date: Fri, 15 Nov 1996 12:35:36 +0100
From: Jos Vos <jos@xos.nl>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

Hi,

The syslogd in Red Hat 3.0.3 (sysklogd package) seems to have a bug that
shows up when you frequently send a SIGHUP signal.  It then says "Too
many open files" after a while (I turned on debugging, added tracing, etc).

I guess it doesn't close its old logfiles or whatever.  Before continuing
my debugging actions, has anybody already solved this bug?  Is it solved
in Red Hat 4.0?  Please mail me the appropriate patch.

It's easy reproducable.  Add some line (like "kern.info /var/log/testlog")
to /etc/syslog.conf, then execute:

	while true
	do
		mv -f /var/log/testlog /var/log/testlog2
		kill -1 `cat /var/run/syslog.pid`
		sleep 1
		ls -l /var/log/testlog
	done

And after 10 seconds or so the testlog file is not created anymore.

Thanks.

--
--    Jos Vos <jos@xos.nl>
--    X/OS Experts in Open Systems BV   |   Phone: +31 20 6938364
--    Amsterdam, The Netherlands        |     Fax: +31 20 6948204


--
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
  ________________________________________________________________________
  http://www.redhat.com/RedHat-FAQ   http://www.redhat.com/RedHat-Errata
  http://www.redhat.com/RedHat-Tips  http://www.redhat.com/mailing-lists
  ------------------------------------------------------------------------
To unsubscribe: mail -s unsubscribe redhat-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post