diff options
author | deischen <deischen@FreeBSD.org> | 2005-08-03 00:45:58 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2005-08-03 00:45:58 +0000 |
commit | b6d33128d9242b8331d36ecea9d4193c2904539b (patch) | |
tree | b61ce4b8e1b49c33d732a805e40ff8affc0504d0 /lib/libc | |
parent | 9f955034a1fabe77d224613df2cba7ab2415dbc5 (diff) | |
download | FreeBSD-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/libc')
-rw-r--r-- | lib/libc/gen/syslog.c | 2 |
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; |