Bye Bye trap
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user