gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r8178 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r8178 - libmicrohttpd/src/daemon
Date: Mon, 2 Feb 2009 22:49:17 -0700 (MST)

Author: grothoff
Date: 2009-02-02 22:49:16 -0700 (Mon, 02 Feb 2009)
New Revision: 8178

Modified:
   libmicrohttpd/src/daemon/daemon.c
Log:
initialize mutex'
'

Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2009-02-03 05:35:28 UTC (rev 8177)
+++ libmicrohttpd/src/daemon/daemon.c   2009-02-03 05:49:16 UTC (rev 8178)
@@ -1139,10 +1139,18 @@
   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);
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]