From: kremlin Date: Tue, 5 Aug 2014 02:51:47 +0000 (-0500) Subject: minor, add a TODO to hostnamed.c i caught X-Git-Tag: gsoc-final~45 X-Git-Url: https://uglyman.kremlin.cc/gitweb/gitweb.cgi?p=systembsd.git;a=commitdiff_plain;h=04cc16f2679f2c3096fc9e854c192117d4ec901d minor, add a TODO to hostnamed.c i caught --- 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() {