зеркало из https://github.com/mozilla/pjs.git
Bug 620647 - plugin-container crashes after channel error r=jones.chris.g sr=roc a=approval2.0
This commit is contained in:
Родитель
e3a9eb4261
Коммит
04c72a8fde
|
@ -579,9 +579,21 @@ PluginModuleChild::AnswerNP_Shutdown(NPError *rv)
|
|||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
PluginModuleChild::QuickExit()
|
||||
{
|
||||
NS_WARNING("plugin process _exit()ing");
|
||||
_exit(0);
|
||||
}
|
||||
|
||||
void
|
||||
PluginModuleChild::ActorDestroy(ActorDestroyReason why)
|
||||
{
|
||||
if (AbnormalShutdown == why) {
|
||||
NS_WARNING("shutting down early because of crash!");
|
||||
QuickExit();
|
||||
}
|
||||
|
||||
// doesn't matter why we're being destroyed; it's up to us to
|
||||
// initiate (clean) shutdown
|
||||
XRE_ShutdownChildProcess();
|
||||
|
|
|
@ -140,6 +140,8 @@ protected:
|
|||
virtual void
|
||||
ActorDestroy(ActorDestroyReason why);
|
||||
|
||||
NS_NORETURN void QuickExit();
|
||||
|
||||
public:
|
||||
PluginModuleChild();
|
||||
virtual ~PluginModuleChild();
|
||||
|
|
Загрузка…
Ссылка в новой задаче