gdbusnameowning: Don't spew an error if we're releasing a name due to closing
authorColin Walters <walters@verbum.org>
Fri, 19 Jul 2013 15:50:35 +0000 (11:50 -0400)
committerColin Walters <walters@verbum.org>
Fri, 19 Jul 2013 21:49:47 +0000 (17:49 -0400)
commit31aee73285729b1d0d2210cb728b4b2d52711678
tree261488d296280de3ce8f8a2eb912f6dc1de5ed63
parentbe2c7b83c4a9c9d3aa76b1499c27ab19e0f4e470
gdbusnameowning: Don't spew an error if we're releasing a name due to closing

The default GNOME 3.10 login process right now has gdm spawn a session
for the login screen, retaining the X server, but closing the session
bus.  Right now in this scenario many GNOME components such as
gnome-settings-daemon attempt to "clean up" on shutdown by releasing
their owned names.

But they're shutting down because the session bus went away, so
releasing the name is pointless, and presently spews an error into the
journal.

This patch avoids that error spew, which helps system administrators
find *real* problems.

https://bugzilla.gnome.org/show_bug.cgi?id=704567
gio/gdbusnameowning.c