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