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
1.2-netsec
Kevin P. Fleming 20 years ago
parent 0bffff1930
commit 130bf3b9e0

@ -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);

Loading…
Cancel
Save