diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-02-03 05:52:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-02-03 05:52:37 +0000 |
commit | 9a779dc2191b81347279afb710279490f8a466df (patch) | |
tree | bc83c4bb48af1ac742447242f522431029598cd9 | |
parent | f4664618a7f42225b3342006f91a7d39e7719e07 (diff) | |
download | libmicrohttpd-9a779dc2191b81347279afb710279490f8a466df.tar.gz libmicrohttpd-9a779dc2191b81347279afb710279490f8a466df.zip |
docu
-rw-r--r-- | README | 7 | ||||
-rw-r--r-- | src/daemon/daemon.c | 4 |
2 files changed, 7 insertions, 4 deletions
@@ -37,8 +37,11 @@ least). On other systems that may trigger a SIGPIPE on send/recv, the | |||
37 | main application should install a signal handler to handle SIGPIPE. | 37 | main application should install a signal handler to handle SIGPIPE. |
38 | 38 | ||
39 | libmicrohttpd should work well on GNU/Linux, BSD, OS X, W32 and z/OS. | 39 | libmicrohttpd should work well on GNU/Linux, BSD, OS X, W32 and z/OS. |
40 | Note that HTTPS is not supported on z/OS (yet). | 40 | Note that HTTPS is not supported on z/OS (yet). We also have reports |
41 | We also have reports of users using it on vxWorks. | 41 | of users using it on vxWorks. Note that on platforms where the |
42 | compiler does not support the "constructor" attribute, you must call | ||
43 | "MHD_init" before using any MHD functions and "MHD_fini" after you are | ||
44 | done using MHD. | ||
42 | 45 | ||
43 | 46 | ||
44 | Notes on compiling on z/OS: | 47 | Notes 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 | */ |
1135 | void __attribute__ ((constructor)) MHD_pthread_handlers_ltdl_init () | 1135 | void __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 | ||
1153 | void __attribute__ ((destructor)) MHD_pthread_handlers_ltdl_fini () | 1153 | void __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)) |