[pisa-src] r1142 - trunk/pisasd/sdmain.c

  • From: Thomas Jansen <mithi@xxxxxxxxx>
  • To: pisa-src@xxxxxxxxxxxxx
  • Date: Wed, 14 Oct 2009 15:47:18 +0200

Author: tjansen
Date: Wed Oct 14 15:47:15 2009
New Revision: 1142

Log:
Deprecated more preauth code in sdmain.c

Modified:
   trunk/pisasd/sdmain.c

Modified: trunk/pisasd/sdmain.c
==============================================================================
--- trunk/pisasd/sdmain.c       Wed Oct 14 15:21:45 2009        (r1141)
+++ trunk/pisasd/sdmain.c       Wed Oct 14 15:47:15 2009        (r1142)
@@ -90,8 +90,8 @@
 static void sd_print_version(void);
 static void sd_reload_confs(pisa_conf_packet *p);
 static void sd_quit(int quitcode);
-static void sd_handle_sigalarm(int sigcode);
 #ifdef REMOVE_PREAUTH_CODE
+static void sd_handle_sigalarm(int sigcode);
 static void sd_start_alarm(void);
 #endif /* REMOVE_PREAUTH_CODE */
 
@@ -133,7 +133,9 @@
        signal(SIGILL, sd_quit);
        signal(SIGPIPE, SIG_IGN);
        signal(SIGBUS, sd_quit);
+#ifdef REMOVE_PREAUTH_CODE
        signal(SIGALRM, sd_handle_sigalarm);
+#endif /* REMOVE_PREAUTH_CODE */
 
        /* Check and create lockfile */
        pisa_create_lock_file(PISASD_LOCK_FILE, 0);
@@ -558,6 +560,7 @@
        sdconf_read_basic_confs(&sd_cfg);
 }
 
+#ifdef REMOVE_PREAUTH_CODE
 /**
  * This handler is executed periodically by SIGALRM.
  *
@@ -587,7 +590,6 @@
        sdconf_read_basic_confs(&sd_cfg);
 }
 
-#ifdef REMOVE_PREAUTH_CODE
 /**
  * Setup alarm
  */

Other related posts:

  • » [pisa-src] r1142 - trunk/pisasd/sdmain.c - Thomas Jansen