Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4421)

Unified Diff: chrome/renderer/chrome_render_process_observer.cc

Issue 9936002: Added code so renderer would cleanly exit. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added chrome_switches.cc to libcontent_browser.a. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);
+ else
+ _exit(0);
}
};
#endif // OS_POSIX

Powered by Google App Engine
This is Rietveld 408576698