From b98cd781ae577cea9e63f3aed891e23f69ef42b6 Mon Sep 17 00:00:00 2001 From: glebius Date: Fri, 24 Dec 2004 09:48:44 +0000 Subject: Restore standard behavior: log to console only when normal logging failed, not always. PR: bin/75356 Submitted by: Mark Knight Pointy hat to: glebius MFC after: 3 days --- lib/libc/gen/syslog.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/libc/gen/syslog.c') diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c index 93c4146..76a3a5b 100644 --- a/lib/libc/gen/syslog.c +++ b/lib/libc/gen/syslog.c @@ -273,11 +273,12 @@ vsyslog(pri, fmt, ap) do { usleep(1); if (send(LogFile, tbuf, cnt, 0) >= 0) - break; + return; if (status == CONNPRIV) break; } while (errno == ENOBUFS); - } + } else + return; /* * Output the message to the console; try not to block -- cgit v1.1