Bye Bye trap

This commit is contained in:
angt
2015-12-05 11:34:58 +01:00
parent ed2114a1ce
commit b7b64f98fd

View File

@@ -347,7 +347,6 @@ static void gt_set_signal (void)
sa.sa_handler = SIG_IGN; sa.sa_handler = SIG_IGN;
sigaction(SIGHUP, &sa, NULL); sigaction(SIGHUP, &sa, NULL);
sigaction(SIGPIPE, &sa, NULL); sigaction(SIGPIPE, &sa, NULL);
sigaction(SIGUSR2, &sa, NULL);
} }
static ssize_t fd_read (int fd, void *data, size_t size) 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 }, { "noquickack", NULL, option_option },
{ "retry", &retry_opts, option_option }, { "retry", &retry_opts, option_option },
{ "daemon", &daemon_opts, option_option }, { "daemon", &daemon_opts, option_option },
{ "trap", NULL, option_option },
{ "version", NULL, option_option }, { "version", NULL, option_option },
{ NULL }, { NULL },
}; };
@@ -859,9 +857,6 @@ int main (int argc, char **argv)
retry = 0; retry = 0;
if (option_is_set(opts, "trap"))
kill(0, SIGUSR2);
gt_log("%s: running\n", sockname); gt_log("%s: running\n", sockname);
fd_set rfds; fd_set rfds;