summaryrefslogtreecommitdiffstats
path: root/debug.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-31 11:32:25 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-31 11:32:25 +0000
commit77358e12ab9c8a52c81673e24239d7878e7848c9 (patch)
tree2643e033ae06e51f182dd0d0d09f68e67e1ca0cb /debug.c
parent182c2cafceef701cfcd79e2a7994faa9fc5d4672 (diff)
downloadrsyslog-77358e12ab9c8a52c81673e24239d7878e7848c9.tar.gz
rsyslog-77358e12ab9c8a52c81673e24239d7878e7848c9.tar.xz
rsyslog-77358e12ab9c8a52c81673e24239d7878e7848c9.zip
- fixed bug in sample rsyslog.conf
- fixed wrong action suspend/resume handling - we have some issue with the mutx in dbgoprint, but that is acceptable for the time being, I just removed the deadlock codition (debug system only)
Diffstat (limited to 'debug.c')
-rw-r--r--debug.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/debug.c b/debug.c
index 82ed2442..d0751aa9 100644
--- a/debug.c
+++ b/debug.c
@@ -57,7 +57,7 @@ static dbgThrdInfo_t *dbgGetThrdInfo(void);
/* static data (some time to be replaced) */
int Debug; /* debug flag - read-only after startup */
int debugging_on = 0; /* read-only, except on sig USR1 */
-static int bLogFuncFlow = 0; /* shall the function entry and exit be logged to the debug log? */
+static int bLogFuncFlow = 1; /* shall the function entry and exit be logged to the debug log? */
static int bPrintFuncDBOnExit = 0; /* shall the function entry and exit be logged to the debug log? */
static int bPrintMutexAction = 0; /* shall mutex calls be printed to the debug log? */
static int bPrintTime = 1; /* print a timestamp together with debug message */
@@ -705,8 +705,10 @@ dbgoprint(obj_t *pObj, char *fmt, ...)
if(!(Debug && debugging_on))
return;
+#if 0
pthread_mutex_lock(&mutdbgprintf);
pthread_cleanup_push(dbgMutexCancelCleanupHdlr, &mutdbgprintf);
+#endif
/* The bWasNL handler does not really work. It works if no thread
* switching occurs during non-NL messages. Else, things are messed
@@ -763,7 +765,9 @@ dbgoprint(obj_t *pObj, char *fmt, ...)
fflush(stddbg);
if(altdbg != NULL) fflush(altdbg);
+#if 0
pthread_cleanup_pop(1);
+#endif
}