Chromium Code Reviews| Index: chrome/renderer/chrome_render_process_observer.cc |
| diff --git a/chrome/renderer/chrome_render_process_observer.cc b/chrome/renderer/chrome_render_process_observer.cc |
| index 2ec16ddfbab72a90dcb2af29426e3b3117582f8f..b25a56ea7b465b70f280a9ce4a1ac9a0665f8cb3 100644 |
| --- a/chrome/renderer/chrome_render_process_observer.cc |
| +++ b/chrome/renderer/chrome_render_process_observer.cc |
| @@ -162,7 +162,11 @@ class SuicideOnChannelErrorFilter : public IPC::ChannelProxy::MessageFilter { |
| // So, we install a filter on the channel so that we can process this event |
| // here and kill the process. |
| - _exit(0); |
| + if (CommandLine::ForCurrentProcess()-> |
| + HasSwitch(switches::kEnableRendererCleanExit)) |
| + alarm(30); |
|
Markus (顧孟勤)
2012/04/06 21:41:59
I think I mentioned this before. A comment would b
asharif1
2012/04/09 23:26:35
Done.
|
| + else |
| + _exit(0); |
| } |
| }; |
| #endif // OS_POSIX |