From 04cc16f2679f2c3096fc9e854c192117d4ec901d Mon Sep 17 00:00:00 2001 From: kremlin Date: Mon, 4 Aug 2014 21:51:47 -0500 Subject: [PATCH] minor, add a TODO to hostnamed.c i caught --- bin/obj/.tmp | 2 +- src/interfaces/hostnamed/hostnamed.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/obj/.tmp b/bin/obj/.tmp index c26bd86..a249d69 100644 --- a/bin/obj/.tmp +++ b/bin/obj/.tmp @@ -1 +1 @@ -(git ignores empty dirs) +(git something something) diff --git a/src/interfaces/hostnamed/hostnamed.c b/src/interfaces/hostnamed/hostnamed.c index cf066b2..2eadbe8 100644 --- a/src/interfaces/hostnamed/hostnamed.c +++ b/src/interfaces/hostnamed/hostnamed.c @@ -253,6 +253,10 @@ void set_signal_handlers() { g_unix_signal_add(SIGINT, unix_sig_terminate_handler, NULL); g_unix_signal_add(SIGHUP, unix_sig_terminate_handler, NULL); g_unix_signal_add(SIGTERM, unix_sig_terminate_handler, NULL); + + /* TODO: the "only once" guarantee only counts towards specific signals. + * make sure calling a SIGINT and SIGHUP doesn't cause term_handler() + * to be called twice */ } int main() { -- 2.41.0