summaryrefslogtreecommitdiff
path: root/yhttpd/src/sign.cpp
diff options
context:
space:
mode:
authorPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-15 11:49:02 +0100
committerPaul Buetow (mars.fritz.box) <paul@buetow.org>2013-12-15 11:49:02 +0100
commit3a96ab7e91145b367d05e98533b5f426f762f83f (patch)
treeac7758a706066e14b785ab6e5f7071a54baa856b /yhttpd/src/sign.cpp
parent332d7b2107833018b3ef67b64ffe121bff1ef4fb (diff)
add packagespackages
Diffstat (limited to 'yhttpd/src/sign.cpp')
-rw-r--r--yhttpd/src/sign.cpp54
1 files changed, 0 insertions, 54 deletions
diff --git a/yhttpd/src/sign.cpp b/yhttpd/src/sign.cpp
deleted file mode 100644
index efb28d7..0000000
--- a/yhttpd/src/sign.cpp
+++ /dev/null
@@ -1,54 +0,0 @@
-#ifndef SIGN_CPP
-#define SIGN_CPP
-
-#include "sign.h"
-
-void
-sign::clean_template_cache(int i_param)
-{
- wrap::HTML->clear_cache();
-}
-
-
-#ifdef CTCSEGV
-void
-sign::sigsev_received(int i_param)
-{
- wrap::system_message(SIGNSEG);
-}
-#endif
-
-void
-sign::terminate_received(int i_param)
-{
-
-#ifdef NCURSES
-
- mvprintw( 21,2, "Good bye !");
- wrap::NCUR->close_ncurses();
-
-#endif
-
- exit(0);
-}
-
-void
-sign::init_signal_handlers()
-{
- // Ignore SIGPIPE. otherwise the server will shut down with "Broken pipe" if
- // a client unexpected disconnects himself from a SOCK_STREAM.
- signal(SIGPIPE, SIG_IGN);
-
- signal(SIGUSR1, clean_template_cache);
-#ifdef CTCSEGV
-
- signal(SIGSEGV, sigsev_received);
-#endif
-
- signal(SIGHUP, terminate_received);
- signal(SIGINT, terminate_received);
- signal(SIGTERM, terminate_received);
- //signal(SIGWINCH, );
-}
-
-#endif