aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2009-02-03 05:52:37 +0000
committerChristian Grothoff <christian@grothoff.org>2009-02-03 05:52:37 +0000
commit9a779dc2191b81347279afb710279490f8a466df (patch)
treebc83c4bb48af1ac742447242f522431029598cd9
parentf4664618a7f42225b3342006f91a7d39e7719e07 (diff)
downloadlibmicrohttpd-9a779dc2191b81347279afb710279490f8a466df.tar.gz
libmicrohttpd-9a779dc2191b81347279afb710279490f8a466df.zip
docu
-rw-r--r--README7
-rw-r--r--src/daemon/daemon.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/README b/README
index 25ff36f9..74ce8154 100644
--- a/README
+++ b/README
@@ -37,8 +37,11 @@ least). On other systems that may trigger a SIGPIPE on send/recv, the
37main application should install a signal handler to handle SIGPIPE. 37main application should install a signal handler to handle SIGPIPE.
38 38
39libmicrohttpd should work well on GNU/Linux, BSD, OS X, W32 and z/OS. 39libmicrohttpd should work well on GNU/Linux, BSD, OS X, W32 and z/OS.
40Note that HTTPS is not supported on z/OS (yet). 40Note that HTTPS is not supported on z/OS (yet). We also have reports
41We also have reports of users using it on vxWorks. 41of users using it on vxWorks. Note that on platforms where the
42compiler does not support the "constructor" attribute, you must call
43"MHD_init" before using any MHD functions and "MHD_fini" after you are
44done using MHD.
42 45
43 46
44Notes on compiling on z/OS: 47Notes on compiling on z/OS:
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c
index b824e9ea..c9959a74 100644
--- a/src/daemon/daemon.c
+++ b/src/daemon/daemon.c
@@ -1132,7 +1132,7 @@ sigalrmHandler (int sig)
1132/** 1132/**
1133 * Initialize the signal handler for SIGALRM. 1133 * Initialize the signal handler for SIGALRM.
1134 */ 1134 */
1135void __attribute__ ((constructor)) MHD_pthread_handlers_ltdl_init () 1135void __attribute__ ((constructor)) MHD_init ()
1136{ 1136{
1137#ifndef WINDOWS 1137#ifndef WINDOWS
1138 /* make sure SIGALRM does not kill us */ 1138 /* make sure SIGALRM does not kill us */
@@ -1150,7 +1150,7 @@ void __attribute__ ((constructor)) MHD_pthread_handlers_ltdl_init ()
1150#endif 1150#endif
1151} 1151}
1152 1152
1153void __attribute__ ((destructor)) MHD_pthread_handlers_ltdl_fini () 1153void __attribute__ ((destructor)) MHD_fini ()
1154{ 1154{
1155#if HTTPS_SUPPORT 1155#if HTTPS_SUPPORT
1156 if (0 != pthread_mutex_destroy(&MHD_gnutls_init_mutex)) 1156 if (0 != pthread_mutex_destroy(&MHD_gnutls_init_mutex))