projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c29ad23
)
GDBus: Hold lock when printing debug messages
author
David Zeuthen
<davidz@redhat.com>
Fri, 2 Jul 2010 13:40:59 +0000
(09:40 -0400)
committer
David Zeuthen
<davidz@redhat.com>
Fri, 2 Jul 2010 13:40:59 +0000
(09:40 -0400)
Signed-off-by: David Zeuthen <davidz@redhat.com>
gio/gdbusauth.c
patch
|
blob
|
history
diff --git
a/gio/gdbusauth.c
b/gio/gdbusauth.c
index
b2a9307
..
b0af4fa
100644
(file)
--- a/
gio/gdbusauth.c
+++ b/
gio/gdbusauth.c
@@
-58,6
+58,8
@@
debug_print (const gchar *message, ...)
va_list var_args;
guint n;
+ _g_dbus_debug_print_lock ();
+
va_start (var_args, message);
s = g_strdup_vprintf (message, var_args);
va_end (var_args);
@@
-75,6
+77,8
@@
debug_print (const gchar *message, ...)
g_print ("GDBus-debug:Auth: %s\n", str->str);
g_string_free (str, TRUE);
g_free (s);
+
+ _g_dbus_debug_print_unlock ();
}
}