Bug 3889

Summary: syslog loses messages when syslogd restarted
Product: uClibc Reporter: Michael Deutschmann <michael>
Component: OtherAssignee: unassigned
Status: NEW ---    
Severity: minor CC: uclibc-cvs
Priority: P5    
Version: 0.9.32   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Host: Target:
Build:
Attachments: Fix to handle syslogd restarts

Description Michael Deutschmann 2011-06-17 14:06:19 UTC
Created attachment 3433 [details]
Fix to handle syslogd restarts

If syslogd is stopped and restarted while a process has the log open, the next message that process produces will be logged to the console and not to the new instance of syslogd.  Further messages will be routed correctly, but not the first one after the restarted.

Attached is a patch to make the syslog function attempt to reconnect to the log daemon after a ECONNRESET, before giving up on the message at issue.
Comment 1 Bernhard Reutner-Fischer 2011-06-17 20:04:23 UTC
Michael,

I'm sorry but please attach a proper git format-patch with a Signed-off-by line.
The SOB line is an absolute must.
Same for the other patches you just sent.

TIA and cheers,
Comment 2 Michael Deutschmann 2011-06-23 04:35:04 UTC
I don't know how to make "git format" patches, so regular patches are all I can offer at this time.
Comment 3 Bernhard Reutner-Fischer 2011-06-23 16:52:22 UTC
(In reply to comment #2)
> I don't know how to make "git format" patches, so regular patches are all I can
> offer at this time.

git format-patch -o /tmp/foo origin/master
To provide the required Signed-off-by: line automatically, use
git commit -s

Looking forward to respun patches that include those SOB lines.
TIA and cheers,