From 4fdb6ce34a10b82b51a6d9d5de2da738d37fd07c Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Tue, 9 Mar 2010 15:16:54 -0800 Subject: [PATCH] msgr: remove dead kill_after code bits --- src/msg/SimpleMessenger.cc | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/msg/SimpleMessenger.cc b/src/msg/SimpleMessenger.cc index 60c972847ec..dfca9d110e5 100644 --- a/src/msg/SimpleMessenger.cc +++ b/src/msg/SimpleMessenger.cc @@ -2082,15 +2082,6 @@ int SimpleMessenger::bind(int64_t force_nonce) return accepter.bind(force_nonce); } - -class C_Die : public Context { -public: - void finish(int) { - cerr << "die" << std::endl; - exit(1); - } -}; - static void write_pid_file(int pid) { if (!g_conf.pid_file) @@ -2180,10 +2171,6 @@ int SimpleMessenger::start(bool nodaemon) write_pid_file(getpid()); } - // some debug hackery? - //if (g_conf.kill_after) - //qg_timer.add_event_after(g_conf.kill_after, new C_Die); - // go! if (did_bind) accepter.start();