This patch modifies ulogd to intercept SIGINT signal and quit nicely when this signal is received. Signed-off-by: Eric Leblond <eric@xxxxxx> --- src/ulogd.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/ulogd.c b/src/ulogd.c index d193b26..2f80913 100644 --- a/src/ulogd.c +++ b/src/ulogd.c @@ -980,7 +980,7 @@ static void stop_pluginstances() static void sigterm_handler(int signal) { - ulogd_log(ULOGD_NOTICE, "sigterm received, exiting\n"); + ulogd_log(ULOGD_NOTICE, "Terminal signal received, exiting\n"); deliver_signal_pluginstances(signal); @@ -1173,6 +1173,7 @@ int main(int argc, char* argv[]) } signal(SIGTERM, &sigterm_handler); + signal(SIGINT, &sigterm_handler); signal(SIGHUP, &signal_handler); signal(SIGALRM, &signal_handler); signal(SIGUSR1, &signal_handler); -- 1.5.6.3 -- To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html