Here's a better, somewhat more verbose patch that doesn't require anything beyond what we already use. When receiving SIG{INT,TERM} and restarting, we now display about:home with an option to restore your last session instead of the "this is embarrassing" page.
As with any modular app using signals, I am unsure of how this interacts with code that already tries to deal with signals:
Created attachment 608074
patch
Here's a better, somewhat more verbose patch that doesn't require anything beyond what we already use. When receiving SIG{INT,TERM} and restarting, we now display about:home with an option to restore your last session instead of the "this is embarrassing" page.
As with any modular app using signals, I am unsure of how this interacts with code that already tries to deal with signals:
http:// mxr.mozilla. org/mozilla- central/ source/ profile/ dirserviceprovi der/src/ nsProfileLock. cpp#440
nsAppShell appears to install its handlers after this.
There's also some code in breakpad, which I assume doesn't come into play here.