[uClibc 0000575]: syslog() blocks when syslogd dies
bugs at busybox.net
bugs at busybox.net
Tue Jun 3 14:04:03 UTC 2008
A NOTE has been added to this issue.
======================================================================
http://busybox.net/bugs/view.php?id=575
======================================================================
Reported By: akvadrako
Assigned To: uClibc
======================================================================
Project: uClibc
Issue ID: 575
Category: Other
Reproducibility: always
Severity: minor
Priority: normal
Status: assigned
======================================================================
Date Submitted: 12-01-2005 15:14 PST
Last Modified: 06-03-2008 07:04 PDT
======================================================================
Summary: syslog() blocks when syslogd dies
Description:
syslog() uses SIGPIPE to detect when the connection to syslogd is severed.
However, when SIGPIPE is blocked, it blocks forever. syslog() should use
non-blocking IO to ensure it's writes do not block.
======================================================================
----------------------------------------------------------------------
vda - 06-03-08 07:04
----------------------------------------------------------------------
Test program:
#include <syslog.h>
int main() {
int i;
for (i = 0; i < 10000; i++)
syslog(LOG_INFO, "Testing,
disregard....................");
return 0;
}
It indeed blocks if e.g. syslogd is stopped.
Issue History
Date Modified Username Field Change
======================================================================
12-01-05 15:14 akvadrako New Issue
12-01-05 15:14 akvadrako Status new => assigned
12-01-05 15:14 akvadrako Assigned To => uClibc
06-03-08 07:04 vda Note Added: 0008064
======================================================================
More information about the uClibc-cvs
mailing list