summaryrefslogtreecommitdiff
path: root/sig_handler.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2013-09-16 14:28:46 (GMT)
committerChristian Pointner <equinox@helsinki.at>2013-09-16 14:28:46 (GMT)
commit6aef19e1b31044795ecd2d356315ad5506a292a2 (patch)
tree98a227eb505e7fea7d53e654d91ade9e279bdba2 /sig_handler.c
parent9decd47e14165e159e70829a5dd71cd076cde700 (diff)
cleanups
Diffstat (limited to 'sig_handler.c')
-rw-r--r--sig_handler.c14
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]);