summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/gen/syslog.c')
-rw-r--r--lib/libc/gen/syslog.c5
1 files changed, 3 insertions, 2 deletions
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
OpenPOWER on IntegriCloud