GNOME Bugzilla – Bug 608409
should die with session bus
Last modified: 2012-06-04 22:39:07 UTC
I'm sure we'll get into the age old question of who starts who but here's the bug: 1. Login to gnome-session 2. simulate a dbus crash by doing pkill -f dbus What happens for me is the session goes into a loop trying to restart apps and reconnect to the session. Trying to reconnect to the session bus is crazy. gnome-session should exit in this case.
Created attachment 152547 [details] [review] patch There may also be some value in converting some of the g_criticals to g_errors. Unless they interfere with the clean shutdown added in this patch.
Josselin: any comment on this?
I agree on principle that the only sane thing to do in this case is to exit. The only reconnection that should happen is when the system bus restarts, for the session bus this is pure madness. And indeed, we’d need to test the patch in both cases (dbus-launch gnome-session, and gnome-session starting dbus-daemon itself).
Created attachment 215592 [details] [review] main: exit gracefully when disconnected from the session bus This fixes a problem where all hell breaks loose if we lose the bus.
Created attachment 215593 [details] [review] main: fail if we can't get a connection to the session bus Right now we try to keep on chugging, but that's in vain. It's better to just fail whale.
Attachment 215592 [details] pushed as 34c3805 - main: exit gracefully when disconnected from the session bus Attachment 215593 [details] pushed as fea0daf - main: fail if we can't get a connection to the session bus