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

Unified Diff: src/platform/init/chromeos_shutdown

Issue 1702008: Add crash_reporter functionality (Closed)
Patch Set: add set -e Created 10 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
« no previous file with comments | « src/platform/crash/user_collector_test.cc ('k') | src/platform/init/crash-reporter.conf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/platform/init/chromeos_shutdown
diff --git a/src/platform/init/chromeos_shutdown b/src/platform/init/chromeos_shutdown
index e4c0508924f05521af88e675b68c2feaae725ea5..8d6cf3a1dc53959608342aec8eb288aa6c287f57 100755
--- a/src/platform/init/chromeos_shutdown
+++ b/src/platform/init/chromeos_shutdown
@@ -43,6 +43,10 @@ fi
cut -f 1 -d ' ' /proc/uptime > /var/log/metrics/uptime_shutdown_stop
cat /sys/block/sda/stat > /var/log/metrics/disk_shutdown_stop
+# Signal that the clean shutdown point was reached (or at least as
+# close to that point as we can be before stateful is unmounted).
+/sbin/crash_reporter --clean_shutdown
+
# Lazy umount the tmpfs dirs under /var so we can immediately umount it.
umount -n -l /var/tmp /var/run /var/lock
umount -n /var /usr/local /home /mnt/stateful_partition
« no previous file with comments | « src/platform/crash/user_collector_test.cc ('k') | src/platform/init/crash-reporter.conf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698