mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-22 20:56:39 +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
|
#define MAX_MSG_QUEUE 200
|
||||||
|
|
||||||
#if defined(__linux__) && defined(__NR_gettid)
|
#if defined(__linux__) && !defined(__NR_gettid)
|
||||||
#include <asm/unistd.h>
|
#include <asm/unistd.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(__linux__) && defined(__NR_gettid)
|
||||||
#define GETTID() syscall(__NR_gettid)
|
#define GETTID() syscall(__NR_gettid)
|
||||||
#else
|
#else
|
||||||
#define GETTID() getpid()
|
#define GETTID() getpid()
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
static char dateformat[256] = "%b %e %T"; /* Original Asterisk Format */
|
static char dateformat[256] = "%b %e %T"; /* Original Asterisk Format */
|
||||||
|
|
||||||
AST_MUTEX_DEFINE_STATIC(msglist_lock);
|
AST_MUTEX_DEFINE_STATIC(msglist_lock);
|
||||||
|
Reference in New Issue
Block a user