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/inotify | |
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/inotify')
-rw-r--r-- | gio/inotify/inotify-kernel.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gio/inotify/inotify-kernel.c b/gio/inotify/inotify-kernel.c index d6385f939..e0eccccab 100644 --- a/gio/inotify/inotify-kernel.c +++ b/gio/inotify/inotify-kernel.c @@ -208,6 +208,7 @@ gboolean _ik_startup (void (*cb)(ik_event_t *event)) g_io_channel_set_flags (inotify_read_ioc, G_IO_FLAG_NONBLOCK, NULL); source = g_source_new (&ik_source_funcs, sizeof (GSource)); + g_source_set_name (source, "GIO Inotify"); g_source_add_poll (source, &ik_poll_fd); g_source_set_callback (source, ik_read_callback, NULL, NULL); g_source_attach (source, NULL); |