MFC (by deischen)
| Make syslog() use the internal (non-cancellation point) _usleep(). | Prior to this it was calling the cancellable usleep() while holding | a lock. | | Revision Changes Path | 1.36 +1 -1 src/lib/libc/gen/syslog.c Approved by: re (kensmith) Ok'ed by: deischen, davidxu
This commit is contained in:
parent
1de4269756
commit
50d80715c4
@ -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