[Asterisk-cvs] asterisk logger.c,1.84,1.85
kpfleming
kpfleming
Tue Oct 4 20:26:09 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv2314
Modified Files:
logger.c
Log Message:
use thread ID instead of process ID in logger messages (issue #5349)
Index: logger.c
===================================================================
RCS file: /usr/cvsroot/asterisk/logger.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -d -r1.84 -r1.85
--- logger.c 26 Sep 2005 15:43:16 -0000 1.84
+++ logger.c 5 Oct 2005 00:21:56 -0000 1.85
@@ -65,13 +65,17 @@
#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);
More information about the svn-commits
mailing list