(In reply to Karl Tomlinson (:karlt) from comment #48) > (In reply to James Graham [:jgraham] from comment #45) > > > Marionette has a method to invoke shutdown, but sending the > > response races with closing the marionette connection, so it > > isn't reliable. Signalling the process with SIGTERM would be > > the obvious solution, except for this bug. So we either need a > > way to ensure that the marionette response is sent before the > > corresponding socket is closed, or a fix here. > > What kind of response are you expecting from SIGTERM that you > would not get from a marionette shutdown?
As I understand it, handling SIGTERM would ensure a graceful shutdown allowing leak logs to be generated before the process exits. The problem with the Marionette shutdown command (Marionette:Quit) is that the TCP socket is not guaranteed to be flushed before calling Services.startup.quit causes the process to end. If there was a way through the nsIServerSocket XPCOM interface to set SO_LINGER or similar this would block process termination, but the Marionette issue here is essentially irrelevant to the context of this bug. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to firefox in Ubuntu. https://bugs.launchpad.net/bugs/73536 Title: MASTER Firefox crashes on instant X server shutdown Status in Mozilla Firefox: In Progress Status in firefox package in Ubuntu: Won't Fix Status in firefox-3.0 package in Ubuntu: Triaged Bug description: Firefox crashes when X server is forcefully torn down (e.g. by pressing ctrl-alt-backspace) and a crash report gets generated on next login. (Original Report: I've reproduced it once on my machine with the following steps. With, oh, about 5 tabs open, I just pressed ctrl-alt-backspace, logged back in when the X server restarted, and FF crashed with a bug report when Gnome tried to restore the session. It's not terribly important, I don't think anyone does this very often, but maybe it'll be helpful. ) To manage notifications about this bug go to: https://bugs.launchpad.net/firefox/+bug/73536/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp