diff options
Diffstat (limited to 'sig_handler.c')
-rw-r--r-- | sig_handler.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/sig_handler.c b/sig_handler.c index 0645f3c..02dbcb0 100644 --- a/sig_handler.c +++ b/sig_handler.c @@ -13,9 +13,9 @@ * message authentication based on the methodes used by SRTP. It is * intended to deliver a generic, scaleable and secure solution for * tunneling and relaying of packets of any protocol. + * * - * - * Copyright (C) 2007-2008 Christian Pointner <equinox@anytun.org> + * Copyright (C) 2007-2010 Christian Pointner <equinox@anytun.org> * * This file is part of uAnytun. * @@ -36,18 +36,14 @@ #include "datatypes.h" #include "log.h" +#include "sig_handler.h" + #include <signal.h> #include <unistd.h> #include <fcntl.h> -#include <sys/select.h> #include <errno.h> #include <string.h> -#include "sig_handler.h" - -#include <stdio.h> - - static int sig_pipe_fds[2]; int reset_flag; @@ -159,8 +155,8 @@ void signal_stop() sigaction(SIGHUP, &act, NULL); sigaction(SIGUSR1, &act, NULL); sigaction(SIGUSR2, &act, NULL); - sigaction(SIGCHLD, &act, NULL); sigaction(SIGPIPE, &act, NULL); + sigaction(SIGCHLD, &act, NULL); close(sig_pipe_fds[0]); close(sig_pipe_fds[1]); |