Make syslog() use the internal (non-cancellation point) _usleep().

Prior to this it was calling the cancellable usleep() while holding
a lock.
This commit is contained in:
deischen 2005-08-03 00:45:58 +00:00
parent 9f955034a1
commit b6d33128d9

View File

@ -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;