[pisa-src] r1076 - trunk/pisasd

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Fri, 09 Oct 2009 12:13:41 +0200

Author: tjansen
Date: Fri Oct  9 12:13:41 2009
New Revision: 1076

Log:
Removed SIGHUP from pisasd

SIGHUP for config reloading has been deprecated for a while, so clean it up
properly.

Modified:
   trunk/pisasd/sdmain.c

Modified: trunk/pisasd/sdmain.c
==============================================================================
--- trunk/pisasd/sdmain.c       Fri Oct  9 11:31:56 2009        (r1075)
+++ trunk/pisasd/sdmain.c       Fri Oct  9 12:13:41 2009        (r1076)
@@ -172,8 +172,6 @@
        signal(SIGINT, sd_quit);
        signal(SIGQUIT, sd_quit);
        signal(SIGILL, sd_quit);
-/*     signal(SIGHUP, sd_reload_confs);*/
-/* TODO: do we need that, now that we have a pisasdconf */
        signal(SIGPIPE, SIG_IGN);
        signal(SIGBUS, sd_quit);
        signal(SIGALRM, sd_handle_sigalarm);
@@ -595,11 +593,6 @@
  */
 static void sd_reload_confs(pisa_conf_packet *p)
 {
-/*     if(quitcode == SIGHUP)
-       {
-               PISA_DEBUG(PL_CONFIG, "Received a HUP signal.\n");
-       }*/
-/* TODO: do we need that, now that we have a pisasdconf */
        PISA_DEBUG(PL_CONFIG, "Reloading basic configurations...\n");
 
        sdconf_destroy(&sd_cfg);
@@ -608,7 +601,6 @@
        sdconf_setup_conffile(&sd_cfg);
        sdconf_setup_authorized_hosts_conffile();
 
-
        sdconf_read_basic_confs(&sd_cfg);
 }
 

Other related posts:

  • » [pisa-src] r1076 - trunk/pisasd - Thomas Jansen