Bug 820996
| Summary: | rsyslog writes debug messages to fd 1 even after forking | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Dalibor Pospíšil <dapospis> | ||||
| Component: | rsyslog | Assignee: | Tomas Heinrich <theinric> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Dalibor Pospíšil <dapospis> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | high | ||||||
| Version: | 6.3 | CC: | lmiksik, pvrabec | ||||
| Target Milestone: | rc | Keywords: | Regression | ||||
| Target Release: | 6.4 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
Previous version of rsyslog attempted to write debugging messages to standard output even when run in background.
This resulted in the debugging information being written to some other output. This was corrected and the debug messages are not
written to standard output when run in background.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2012-06-20 06:59:11 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Bug Depends On: | |||||||
| Bug Blocks: | 805204 | ||||||
| Attachments: |
|
||||||
|
Description
Dalibor Pospíšil
2012-05-11 14:06:52 UTC
Actually, the issue is not limited to forwarding messages. If debugging is turned on, the messages are written to stdout (fd 1). When the daemon forks, stdout is closed and something else can be opened as fd 1 (file / socket / ...). The target gets cluttered by debug messages which possibly exceed the maximum line length which in turn causes message loss. steps to reproduce: - first action in rsyslog.conf *.* /tmp/all.log - from shell run rsyslogd -c 5 -d - debug messages (besides syslog messages) end up in all.log Created attachment 584922 [details]
proposed patch
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Previous version of rsyslog attempted to write debugging messages to standard output even when run in background.
This resulted in the debugging information being written to some other output. This was corrected and the debug messages are not
written to standard output when run in background.
Technical note updated. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
Diffed Contents:
@@ -1 +1,3 @@
-Previous version of rsyslog attempted to write debugging messages to standard output even when run in background.
This resulted in the debugging information being written to some other output. This was corrected and the debug messages are not
written to standard output when run in background.+Previous version of rsyslog attempted to write debugging messages to standard output even when run in background.
+This resulted in the debugging information being written to some other output. This was corrected and the debug messages are not
+written to standard output when run in background.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-0796.html |