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

Unified Diff: crash_reporter.cc

Issue 3317007: Fix collection of kernel crash into /var/spool/crash (Closed) Base URL: ssh://git@chromiumos-git/crash-reporter.git
Patch Set: Created 10 years, 3 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crash_reporter.cc
diff --git a/crash_reporter.cc b/crash_reporter.cc
index e850e3070800555db1818cec65a20b04a30e4244..37c62a6fbd30ffb65362a73f89f2e8df2489192b 100644
--- a/crash_reporter.cc
+++ b/crash_reporter.cc
@@ -89,6 +89,7 @@ static int Initialize(KernelCollector *kernel_collector,
bool was_kernel_crash = false;
bool was_unclean_shutdown = false;
+ kernel_collector->Enable();
if (kernel_collector->IsEnabled()) {
was_kernel_crash = kernel_collector->Collect();
}
@@ -111,7 +112,6 @@ static int Initialize(KernelCollector *kernel_collector,
}
// Must enable the unclean shutdown collector *after* collecting.
- kernel_collector->Enable();
unclean_shutdown_collector->Enable();
user_collector->Enable();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698