aboutsummaryrefslogtreecommitdiffstats
path: root/src/interfaces/hostnamed/hostnamed.c
diff options
context:
space:
mode:
authorkremlin <ian@kremlin.cc>2014-08-05 10:51:47 +0800
committerkremlin <ian@kremlin.cc>2014-08-05 10:51:47 +0800
commit04cc16f2679f2c3096fc9e854c192117d4ec901d (patch)
treec89ea82a58b375e2d7f4d860b5141059365840ac /src/interfaces/hostnamed/hostnamed.c
parent9728ae1fd2b7c7851673a27f698ae2e3c8c03461 (diff)
downloadsystembsd-04cc16f2679f2c3096fc9e854c192117d4ec901d.tar
systembsd-04cc16f2679f2c3096fc9e854c192117d4ec901d.tar.gz
systembsd-04cc16f2679f2c3096fc9e854c192117d4ec901d.tar.bz2
systembsd-04cc16f2679f2c3096fc9e854c192117d4ec901d.tar.lz
systembsd-04cc16f2679f2c3096fc9e854c192117d4ec901d.tar.xz
systembsd-04cc16f2679f2c3096fc9e854c192117d4ec901d.tar.zst
systembsd-04cc16f2679f2c3096fc9e854c192117d4ec901d.zip
minor, add a TODO to hostnamed.c i caught
Diffstat (limited to 'src/interfaces/hostnamed/hostnamed.c')
-rw-r--r--src/interfaces/hostnamed/hostnamed.c4
1 files changed, 4 insertions, 0 deletions
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() {