Maybe fix for deadlocks on smp

This commit is contained in:
Ron Pedde 2006-06-19 05:06:25 +00:00
parent 57d82a07d5
commit ebeaed447e

View File

@ -157,13 +157,14 @@ void err_log(int level, unsigned int cat, char *fmt, ...)
os_closesyslog(); os_closesyslog();
} }
_err_unlock();
#ifndef ERR_LEAN #ifndef ERR_LEAN
if(level < 2) { /* only event level fatals and log level */ if(level < 2) { /* only event level fatals and log level */
plugin_event_dispatch(PLUGIN_EVENT_LOG, level, errbuf, (int)strlen(errbuf)+1); plugin_event_dispatch(PLUGIN_EVENT_LOG, level, errbuf, (int)strlen(errbuf)+1);
} }
#endif #endif
_err_unlock();
if(!level) { if(!level) {
exit(EXIT_FAILURE); /* this should go to an OS-specific exit routine */ exit(EXIT_FAILURE); /* this should go to an OS-specific exit routine */