From ebeaed447ed45f92b083d5f1c9ece4f7813a3bf9 Mon Sep 17 00:00:00 2001 From: Ron Pedde Date: Mon, 19 Jun 2006 05:06:25 +0000 Subject: [PATCH] Maybe fix for deadlocks on smp --- src/err.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/err.c b/src/err.c index 40e5825c..659f8c2b 100644 --- a/src/err.c +++ b/src/err.c @@ -157,13 +157,14 @@ void err_log(int level, unsigned int cat, char *fmt, ...) os_closesyslog(); } + _err_unlock(); + #ifndef ERR_LEAN if(level < 2) { /* only event level fatals and log level */ plugin_event_dispatch(PLUGIN_EVENT_LOG, level, errbuf, (int)strlen(errbuf)+1); } #endif - _err_unlock(); if(!level) { exit(EXIT_FAILURE); /* this should go to an OS-specific exit routine */