version 1.1.1.2, 2016/11/01 09:56:12
|
version 1.1.1.3, 2019/10/22 13:49:55
|
Line 256 vLogPrintf(const char *fmt, va_list args)
|
Line 256 vLogPrintf(const char *fmt, va_list args)
|
#ifdef SYSLOG_FACILITY |
#ifdef SYSLOG_FACILITY |
syslog(LOG_INFO, "%s", buf); |
syslog(LOG_INFO, "%s", buf); |
#endif |
#endif |
|
pthread_cleanup_push(ConsoleCancelCleanup, gConsole.lock); |
RWLOCK_RDLOCK(gConsole.lock); |
RWLOCK_RDLOCK(gConsole.lock); |
SLIST_FOREACH(s, &gConsole.sessions, next) { |
SLIST_FOREACH(s, &gConsole.sessions, next) { |
if (Enabled(&s->options, CONSOLE_LOGGING)) |
if (Enabled(&s->options, CONSOLE_LOGGING)) |
s->write(s, "%s\r\n", buf); |
s->write(s, "%s\r\n", buf); |
} |
} |
RWLOCK_UNLOCK(gConsole.lock); | pthread_cleanup_pop(1); |
#ifdef SYSLOG_FACILITY |
#ifdef SYSLOG_FACILITY |
} else { |
} else { |
vsyslog(LOG_INFO, fmt, args); |
vsyslog(LOG_INFO, fmt, args); |