return EXIT_FAILURE;
}
- /* Setup our SIGINT signal handler which allows a "normal" termination of
- * the server in DEBUG mode. */
sigemptyset(&action.sa_mask);
action.sa_flags = 0;
#ifdef DEBUG
+ /* Setup our SIGINT signal handler which allows a "normal" termination of
+ * the server in DEBUG mode. */
action.sa_handler = sigint_handler;
sigaction(SIGINT, &action, NULL);
#endif