2
0
Fork 0

[log] Remove (broken) locking for g_printerr in li_log_write_stderr - fputs, the default backend, is thread safe

personal/stbuehler/wip
Stefan Bühler 2012-06-16 13:07:14 +02:00
parent 1951de6e40
commit b310884f4d
1 changed files with 0 additions and 3 deletions

View File

@ -21,7 +21,6 @@ static void li_log_write_stderr(liServer *srv, const gchar *msg, gboolean newlin
struct tm tm;
time_t now = (time_t) ev_time();
gchar buf[128];
GStaticMutex mtx = G_STATIC_MUTEX_INIT;
UNUSED(srv);
@ -33,9 +32,7 @@ static void li_log_write_stderr(liServer *srv, const gchar *msg, gboolean newlin
buf[s] = '\0';
g_static_mutex_lock(&mtx);
g_printerr(newline ? "%s %s\n" : "%s %s", buf, msg);
g_static_mutex_unlock(&mtx);
}
static liLogTarget *log_open(liServer *srv, GString *path) {