Description of problem: Using -m option with nonzero argument will result in the bogus error messages being logged. This is caused by a bug in sysklogd: the errno value of select is checked after it has been reset (from EINTR to EINVAL) by the functions that log the "MARK" message. Version-Release number of selected component (if applicable): sysklogd-1.4.1-44.el5 How reproducible: always Steps to Reproduce: 1. start 'syslogd -m 2 -r -d' 2. let it run for several minutes 3. look into /var/log/messages Actual results: Nov 25 09:00:18 localhost -- MARK -- Nov 25 09:00:18 localhost syslogd: select: Invalid argument Nov 25 09:02:18 localhost -- MARK -- Nov 25 09:02:18 localhost syslogd: select: Invalid argument Nov 25 09:04:18 localhost -- MARK -- Nov 25 09:04:18 localhost syslogd: select: Invalid argument Nov 25 09:06:18 localhost -- MARK -- Expected results: Nov 25 09:00:18 localhost -- MARK -- Nov 25 09:02:18 localhost -- MARK -- Nov 25 09:04:18 localhost -- MARK -- Nov 25 09:06:18 localhost -- MARK --
Created attachment 324585 [details] Proposed patch Avoids problem by storing the errno from select to the new variable.
This request was evaluated by Red Hat Product Management for inclusion, but this component is not scheduled to be updated in the current Red Hat Enterprise Linux release. If you would like this request to be reviewed for the next minor release, ask your support representative to set the next rhel-x.y flag to "?".
It seems the patch is not needed anymore. I couldn't reproduce this problem on RHEL5.4. I suspect that this issue was fixed by one of glibc updates.
I'm closing this bug report. If the problem persist, please reopen it.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2010-0211.html