mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 23:25:56 -05:00
Maybe fix for deadlocks on smp
This commit is contained in:
parent
57d82a07d5
commit
ebeaed447e
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user