summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-11 09:27:30 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-11 09:27:30 +0200
commitd752786d4f5536828dc6d5cd1665f06d323e8844 (patch)
treec90872c21895da3b9740d801fa171f6016e2e883
parent91613812af74d796fd4401507bbd6229a268bc1e (diff)
downloadrsyslog-d752786d4f5536828dc6d5cd1665f06d323e8844.tar.gz
rsyslog-d752786d4f5536828dc6d5cd1665f06d323e8844.tar.xz
rsyslog-d752786d4f5536828dc6d5cd1665f06d323e8844.zip
re-enabled commented-out serialization support in debug handler
-rw-r--r--runtime/debug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/runtime/debug.c b/runtime/debug.c
index edc4a255..307a8bb8 100644
--- a/runtime/debug.c
+++ b/runtime/debug.c
@@ -927,12 +927,12 @@ dbgprint(obj_t *pObj, char *pszMsg, size_t lenMsg)
pszObjName = obj.GetName(pObj);
}
-// pthread_mutex_lock(&mutdbgprint);
-// pthread_cleanup_push(dbgMutexCancelCleanupHdlr, &mutdbgprint);
+ pthread_mutex_lock(&mutdbgprint);
+ pthread_cleanup_push(dbgMutexCancelCleanupHdlr, &mutdbgprint);
do_dbgprint(pszObjName, pszMsg, lenMsg);
-// pthread_cleanup_pop(1);
+ pthread_cleanup_pop(1);
}
#pragma GCC diagnostic warning "-Wempty-body"