From b7b64f98fd864024a59fdd0313861b2f9ed1c902 Mon Sep 17 00:00:00 2001 From: angt Date: Sat, 5 Dec 2015 11:34:58 +0100 Subject: [PATCH] Bye Bye trap --- src/main.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.c b/src/main.c index f08f4fd..9aad2d5 100644 --- a/src/main.c +++ b/src/main.c @@ -347,7 +347,6 @@ static void gt_set_signal (void) sa.sa_handler = SIG_IGN; sigaction(SIGHUP, &sa, NULL); sigaction(SIGPIPE, &sa, NULL); - sigaction(SIGUSR2, &sa, NULL); } static ssize_t fd_read (int fd, void *data, size_t size) @@ -696,7 +695,6 @@ int main (int argc, char **argv) { "noquickack", NULL, option_option }, { "retry", &retry_opts, option_option }, { "daemon", &daemon_opts, option_option }, - { "trap", NULL, option_option }, { "version", NULL, option_option }, { NULL }, }; @@ -859,9 +857,6 @@ int main (int argc, char **argv) retry = 0; - if (option_is_set(opts, "trap")) - kill(0, SIGUSR2); - gt_log("%s: running\n", sockname); fd_set rfds;