+ UNLOCK(lock);
+}
+
+void __vsyslog(int priority, const char *message, va_list ap)
+{
+ int cs;
+ if (!(log_mask & LOG_MASK(priority&7)) || (priority&~0x3ff)) return;
+ pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);
+ LOCK(lock);
+ _vsyslog(priority, message, ap);
+ UNLOCK(lock);
+ pthread_setcancelstate(cs, 0);