[PATCH v2 rhel7-branch] Fix hang at reboot with VNC installs (#1036572)
wwoods at redhat.com
Wed Sep 10 20:57:57 UTC 2014
On Wed, 2014-09-10 at 11:17 +0200, Vratislav Podzimek wrote:
> On Tue, 2014-09-09 at 10:43 -0400, Will Woods wrote:
> > If the X server goes away, anaconda (like other X clients) will get an X
> > IO error; by default this is handled (in libX11) by doing an exit(1).
> > (It's also possible that the dbus server dies before us, and then we get
> > a dbus error; the default handler for that (in libdbus) is... exit(1).)
> > Either way: calling vnc.shutdownServer() can make anaconda exit early.
> I don't understand why dbus server dies when the X server dies,
Sorry, my mistake, you're totally right: the *session* bus dies, but not
the *server* bus. I forgot there were two dbus servers. Confusing!
So the bit about the dbus server going away (and the ensuing race and
uncertainty about which thing causes the process to exit) is true for X
clients that connect to the *session* bus. But AFAICT anaconda only
connects to the *server* bus, so this fact probably isn't relevant here.
I'll clarify that in the comments on commit.
More information about the anaconda-patches