From 8ba85e7741672243b8d1f90d5dbd8491be541b9f Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 24 Dec 2004 09:48:44 +0000 Subject: [PATCH] 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(-) diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c index 93c41468a77..76a3a5b95dc 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