Index: content/child/child_thread.cc |
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc |
index 05650ade06f688cd69040d437d44b6c508cdb013..9d77cd64056480fd9d1658526a0bc4fa406107bb 100644 |
--- a/content/child/child_thread.cc |
+++ b/content/child/child_thread.cc |
@@ -70,12 +70,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. |
- // |
- // We want to kill this process after giving it 30 seconds to run the exit |
- // handlers. SIGALRM has a default disposition of terminating the |
- // application. |
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kChildCleanExit)) |
- alarm(30); |
+ // If clean exit is requested, we want to kill this process after giving |
+ // it 60 seconds to run exit handlers. Exit handlers may including writing |
+ // profile data to disk (which happens under profile collection mode). |
Avi (use Gerrit)
2013/08/01 15:29:43
Yeah, you need braces here. Even if there's only o
asharif1
2013/08/01 15:33:42
Done.
|
+ alarm(60); |
else |
_exit(0); |
} |