summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authormihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 09:02:01 +0000
committermihaip@chromium.org <mihaip@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-23 09:02:01 +0000
commitb25e61de617adc77c1a33e61060d922f252aa7d7 (patch)
treef1a3aa181200f895c26bc2fa721d4cf8540dfc2a /base
parentc4830c5b7706fd7abe9dcccbd8989477fa398f3d (diff)
downloadchromium_src-b25e61de617adc77c1a33e61060d922f252aa7d7.zip
chromium_src-b25e61de617adc77c1a33e61060d922f252aa7d7.tar.gz
chromium_src-b25e61de617adc77c1a33e61060d922f252aa7d7.tar.bz2
Dump a stack trace when browser tests time out.
To make browser test timeouts easier to debug, install a SIGTERM handler that dumps a stack trace (SIGTERM is sent by out_of_proc_test_runner.cc:RunTest via base::KillProcess). R=phajdan.jr@chromium.org Review URL: http://codereview.chromium.org/7696015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97835 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/process_util_posix.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/base/process_util_posix.cc b/base/process_util_posix.cc
index 7e1c1da..059b7d7 100644
--- a/base/process_util_posix.cc
+++ b/base/process_util_posix.cc
@@ -183,8 +183,9 @@ void StackDumpSignalHandler(int signal, siginfo_t* info, ucontext_t* context) {
void ResetChildSignalHandlersToDefaults() {
// The previous signal handlers are likely to be meaningless in the child's
// context so we reset them to the defaults for now. http://crbug.com/44953
- // These signal handlers are set up at least in browser_main.cc:BrowserMain
- // and process_util_posix.cc:EnableInProcessStackDumping.
+ // These signal handlers are set up at least in browser_main_posix.cc:
+ // BrowserMainPartsPosix::PreEarlyInitialization and process_util_posix.cc:
+ // EnableInProcessStackDumping.
signal(SIGHUP, SIG_DFL);
signal(SIGINT, SIG_DFL);
signal(SIGILL, SIG_DFL);