libmicrohttpd

HTTP/1.x server C library (MHD 1.x, stable)
Log | Files | Refs | Submodules | README | LICENSE

commit d23b9ca732986978d74bbf689c75d5a51f104ea7
parent 296760de58c6f287c71fd994e07f45d85495a716
Author: Christian Grothoff <christian@grothoff.org>
Date:   Tue,  3 Feb 2009 05:49:16 +0000

initialize mutex'
'

Diffstat:
Msrc/daemon/daemon.c | 8++++++++
1 file changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c @@ -1139,10 +1139,18 @@ void __attribute__ ((constructor)) MHD_pthread_handlers_ltdl_init () sig.sa_flags = SA_NODEFER; sig.sa_handler = &sigalrmHandler; sigaction (SIGALRM, &sig, &old); +#if HTTPS_SUPPORT + if (0 != pthread_mutex_init(&MHD_gnutls_init_mutex, NULL)) + abort(); +#endif } void __attribute__ ((destructor)) MHD_pthread_handlers_ltdl_fini () { +#if HTTPS_SUPPORT + if (0 != pthread_mutex_destroy(&MHD_gnutls_init_mutex)) + abort (); +#endif sigaction (SIGALRM, &old, &sig); }