From: Alexei Gradinari Date: Thu, 5 May 2016 21:41:21 +0000 (-0400) Subject: logger: Add PID to syslog messages. X-Git-Tag: 13.10.0-rc1~80^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36d66a23e0afce16c89382ea9cbf5b60afd331f2;p=thirdparty%2Fasterisk.git logger: Add PID to syslog messages. During refactoring of this support the addition of the PID to messages was removed. This change adds it back in. ASTERISK-25538 #close Change-Id: Ie2d43b0652e59b7ac319a7dba94501540d70ba36 --- diff --git a/main/logger.c b/main/logger.c index 9db33c9544..9f03b4efa3 100644 --- a/main/logger.c +++ b/main/logger.c @@ -388,6 +388,7 @@ static struct logchannel *make_logchannel(const char *channel, const char *compo } chan->type = LOGTYPE_SYSLOG; + openlog("asterisk", LOG_PID, chan->facility); } else { if (!(chan->fileptr = fopen(chan->filename, "a"))) { /* Can't do real logging here since we're called with a lock