mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
use thread ID instead of process ID in logger messages (issue #5349)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6726 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
logger.c
6
logger.c
@@ -65,13 +65,17 @@ static int syslog_level_map[] = {
|
||||
|
||||
#define MAX_MSG_QUEUE 200
|
||||
|
||||
#if defined(__linux__) && defined(__NR_gettid)
|
||||
#if defined(__linux__) && !defined(__NR_gettid)
|
||||
#include <asm/unistd.h>
|
||||
#endif
|
||||
|
||||
#if defined(__linux__) && defined(__NR_gettid)
|
||||
#define GETTID() syscall(__NR_gettid)
|
||||
#else
|
||||
#define GETTID() getpid()
|
||||
#endif
|
||||
|
||||
|
||||
static char dateformat[256] = "%b %e %T"; /* Original Asterisk Format */
|
||||
|
||||
AST_MUTEX_DEFINE_STATIC(msglist_lock);
|
||||
|
Reference in New Issue
Block a user