summaryrefslogtreecommitdiff
path: root/app/v3_c/src/tcpserver.c
diff options
context:
space:
mode:
Diffstat (limited to 'app/v3_c/src/tcpserver.c')
-rw-r--r--app/v3_c/src/tcpserver.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/app/v3_c/src/tcpserver.c b/app/v3_c/src/tcpserver.c
index 53b86a9..32b9138 100644
--- a/app/v3_c/src/tcpserver.c
+++ b/app/v3_c/src/tcpserver.c
@@ -7,30 +7,13 @@
#include <strings.h>
#include <errno.h>
#include <unistd.h>
-#include <signal.h>
-#include "utils.h"
#include "tcpserver.h"
+#include "utils.h"
#include "dispatcher.h"
int end=0;
-void _signals(int signum) {
- static int force=0;
-
- if (0) printf("signal %i\n", signum);
-
- if(!force) {
- end=1;
- force=1;
- logs("Tentative d'arrĂȘt soft du serveur...");
- } else {
- logs("ArrĂȘt d'urgence du serveur");
- exit(1);
- }
-}
-
-
int tcpserver() {
int res;
int sockServ, sockCli;
@@ -53,9 +36,6 @@ int tcpserver() {
listen(sockServ,LISTEN_BACKLOG);
if (res < 0) { perror("listen"); return(4); }
- // On active la gestion des signaux
- signal(2,_signals);
-
res=initDispatcher();
if (res != 0 ) {
#ifdef DEBUG