Skip to content
Snippets Groups Projects
Commit 130bf3b9 authored by Kevin P. Fleming's avatar Kevin P. Fleming
Browse files

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
parent 0bffff19
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment