summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2005-08-03 00:45:58 +0000
committerdeischen <deischen@FreeBSD.org>2005-08-03 00:45:58 +0000
commitb6d33128d9242b8331d36ecea9d4193c2904539b (patch)
treeb61ce4b8e1b49c33d732a805e40ff8affc0504d0 /lib
parent9f955034a1fabe77d224613df2cba7ab2415dbc5 (diff)
downloadFreeBSD-src-b6d33128d9242b8331d36ecea9d4193c2904539b.zip
FreeBSD-src-b6d33128d9242b8331d36ecea9d4193c2904539b.tar.gz
Make syslog() use the internal (non-cancellation point) _usleep().
Prior to this it was calling the cancellable usleep() while holding a lock.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c
index 0551b611..44efdac 100644
--- a/lib/libc/gen/syslog.c
+++ b/lib/libc/gen/syslog.c
@@ -285,7 +285,7 @@ vsyslog(int pri, const char *fmt, va_list ap)
connectlog();
}
do {
- usleep(1);
+ _usleep(1);
if (send(LogFile, tbuf, cnt, 0) >= 0) {
THREAD_UNLOCK();
return;
OpenPOWER on IntegriCloud