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:
parent
9f955034a1
commit
b6d33128d9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user