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:
delphij 2005-10-08 17:57:10 +00:00
parent 1de4269756
commit 50d80715c4

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;