diff options
Diffstat (limited to 'src/util/scheduler.c')
-rw-r--r-- | src/util/scheduler.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/util/scheduler.c b/src/util/scheduler.c index 8652ee297..36c3a443b 100644 --- a/src/util/scheduler.c +++ b/src/util/scheduler.c | |||
@@ -717,6 +717,9 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) | |||
717 | int ret; | 717 | int ret; |
718 | struct GNUNET_SIGNAL_Context *shc_int; | 718 | struct GNUNET_SIGNAL_Context *shc_int; |
719 | struct GNUNET_SIGNAL_Context *shc_term; | 719 | struct GNUNET_SIGNAL_Context *shc_term; |
720 | #if (SIGTERM != GNUNET_TERM_SIG) | ||
721 | struct GNUNET_SIGNAL_Context *shc_gterm; | ||
722 | #endif | ||
720 | 723 | ||
721 | #ifndef MINGW | 724 | #ifndef MINGW |
722 | struct GNUNET_SIGNAL_Context *shc_quit; | 725 | struct GNUNET_SIGNAL_Context *shc_quit; |
@@ -741,6 +744,9 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) | |||
741 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Registering signal handlers\n"); | 744 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Registering signal handlers\n"); |
742 | shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown); | 745 | shc_int = GNUNET_SIGNAL_handler_install (SIGINT, &sighandler_shutdown); |
743 | shc_term = GNUNET_SIGNAL_handler_install (SIGTERM, &sighandler_shutdown); | 746 | shc_term = GNUNET_SIGNAL_handler_install (SIGTERM, &sighandler_shutdown); |
747 | #if (SIGTERM != GNUNET_TERM_SIG) | ||
748 | shc_gterm = GNUNET_SIGNAL_handler_install (GNUNET_TERM_SIG, &sighandler_shutdown); | ||
749 | #endif | ||
744 | #ifndef MINGW | 750 | #ifndef MINGW |
745 | shc_pipe = GNUNET_SIGNAL_handler_install (SIGPIPE, &sighandler_pipe); | 751 | shc_pipe = GNUNET_SIGNAL_handler_install (SIGPIPE, &sighandler_pipe); |
746 | shc_quit = GNUNET_SIGNAL_handler_install (SIGQUIT, &sighandler_shutdown); | 752 | shc_quit = GNUNET_SIGNAL_handler_install (SIGQUIT, &sighandler_shutdown); |
@@ -820,6 +826,9 @@ GNUNET_SCHEDULER_run (GNUNET_SCHEDULER_Task task, void *task_cls) | |||
820 | } | 826 | } |
821 | GNUNET_SIGNAL_handler_uninstall (shc_int); | 827 | GNUNET_SIGNAL_handler_uninstall (shc_int); |
822 | GNUNET_SIGNAL_handler_uninstall (shc_term); | 828 | GNUNET_SIGNAL_handler_uninstall (shc_term); |
829 | #if (SIGTERM != GNUNET_TERM_SIG) | ||
830 | GNUNET_SIGNAL_handler_install (shc_gterm); | ||
831 | #endif | ||
823 | #ifndef MINGW | 832 | #ifndef MINGW |
824 | GNUNET_SIGNAL_handler_uninstall (shc_pipe); | 833 | GNUNET_SIGNAL_handler_uninstall (shc_pipe); |
825 | GNUNET_SIGNAL_handler_uninstall (shc_quit); | 834 | GNUNET_SIGNAL_handler_uninstall (shc_quit); |