summaryrefslogtreecommitdiff
path: root/src/client_signals.c
diff options
context:
space:
mode:
authorJakub Sławiński2006-04-06 23:34:51 +0200
committerJoshua Judson Rosen2014-07-17 21:15:02 +0200
commit1361f0e88138653d2437f45ddf940206ed0e93b7 (patch)
tree3507c0e145a2674d99e9da65cd8dc7ebcc91bdc1 /src/client_signals.c
parentv0.8 (diff)
downloadapf-1361f0e88138653d2437f45ddf940206ed0e93b7.tar.gz
v0.8.1
- Fixed: enableproxy option in server's config file - Added: clients idle time - Added: 'maxidle' option - Modified: task scheduling subsystem has been completely rewritten - Fixed: segmentation fault in http tunnels after multiple simultaneous POST connections from the same source - Fixed: unexpected connection close when http proxy was too slow - Fixed: SIGSEGV in http proxy mode under cygwin - Added: enabled the SO_KEEPALIVE option for all the sockets used by the apf - Added: 60 seconds timeout for SSL_connect
Diffstat (limited to 'src/client_signals.c')
-rw-r--r--src/client_signals.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/client_signals.c b/src/client_signals.c
index 3184275..1202a48 100644
--- a/src/client_signals.c
+++ b/src/client_signals.c
@@ -27,7 +27,13 @@
#include <stdlib.h>
- void
+/*
+ * Function name: client_sig_int
+ * Description: Function responsible for handling SIG_INT.
+ * Arguments: signo - the signal number
+ */
+
+void
client_sig_int(int signo)
{
#ifdef HAVE_LIBPTHREAD
@@ -40,3 +46,15 @@ client_sig_int(int signo)
exit(0);
}
+/*
+ * Function name: client_sig_alrm
+ * Description: Function responsible for handling SIG_ALRM.
+ * Arguments: signo - the signal number
+ */
+
+void
+client_sig_alrm(int signo)
+{
+ aflog(LOG_T_MAIN, LOG_I_DEBUG,
+ "Received SIGALRM");
+}