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

Unified Diff: main.cc

Issue 3608015: AU: Catch terminate signals and block exit if necessary. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: typo Created 10 years, 2 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 | « generate_delta_main.cc ('k') | terminator.h » ('j') | terminator.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: main.cc
diff --git a/main.cc b/main.cc
index daa5eda97c0949dd7a156bd363f376db0991da2f..94393c3bb5033f6d6011d2c0395debf69654d49a 100644
--- a/main.cc
+++ b/main.cc
@@ -20,6 +20,7 @@
#include "update_engine/dbus_service.h"
#include "update_engine/prefs.h"
#include "update_engine/subprocess.h"
+#include "update_engine/terminator.h"
#include "update_engine/update_attempter.h"
#include "update_engine/update_check_scheduler.h"
@@ -93,6 +94,7 @@ int main(int argc, char** argv) {
g_thread_init(NULL);
dbus_g_thread_init();
base::AtExitManager exit_manager; // Required for base/rand_util.h.
+ chromeos_update_engine::Terminator::Init();
chromeos_update_engine::Subprocess::Init();
google::ParseCommandLineFlags(&argc, &argv, true);
CommandLine::Init(argc, argv);
« no previous file with comments | « generate_delta_main.cc ('k') | terminator.h » ('j') | terminator.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698