diff options
author | Colin Walters <walters@verbum.org> | 2010-07-10 20:09:34 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2010-07-10 20:09:34 -0400 |
commit | d2fe46b476a183168d57581c41b763b9e8f03c7c (patch) | |
tree | 79d372efee16292a084c5fdf6309d8e1f999a272 /gio/gunixinputstream.c | |
parent | 7568bb66f996bdf94da6963399333236f73adb1b (diff) | |
download | glib-d2fe46b476a183168d57581c41b763b9e8f03c7c.tar.gz |
Annotate all custom GIO GSource using g_source_set_name
Naming the sources allows easier debugging with e.g. SystemTap
probes.
https://bugzilla.gnome.org/show_bug.cgi?id=620536
Diffstat (limited to 'gio/gunixinputstream.c')
-rw-r--r-- | gio/gunixinputstream.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/gunixinputstream.c b/gio/gunixinputstream.c index 2cd9aa48e..84422fb50 100644 --- a/gio/gunixinputstream.c +++ b/gio/gunixinputstream.c @@ -500,6 +500,7 @@ g_unix_input_stream_read_async (GInputStream *stream, source = _g_fd_source_new (unix_stream->priv->fd, G_IO_IN, cancellable); + g_source_set_name (source, "GUnixInputStream"); g_source_set_callback (source, (GSourceFunc)read_async_cb, data, g_free); g_source_attach (source, g_main_context_get_thread_default ()); |