]> granicus.if.org Git - icinga2/commitdiff
Even more bugfixes.
authorGunnar Beutner <gunnar.beutner@netways.de>
Thu, 21 Jun 2012 14:16:53 +0000 (16:16 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Thu, 21 Jun 2012 14:16:53 +0000 (16:16 +0200)
README
base/tlsclient.cpp
components/checker/checkercomponent.h
configure.ac
third-party/popen-noshell/Makefile.am

diff --git a/README b/README
index c15b481dd7f7fa134853a84fea65c6edeae69f44..983b43c2a396d612af53c1092c82e53a9585b1e2 100644 (file)
--- a/README
+++ b/README
@@ -20,8 +20,8 @@ mentioned above:
 * GNU Automake (automake)
 * GNU Autoconf (autoconf)
 * GNU Libtool (libtool, libtool-ltdl-devel)
-* optional: GNU bison (bison)
-* optional: GNU flex (flex)
+* GNU bison (bison)
+* GNU flex (flex)
 
 Debian Packages
 ---------------
index 28c2415f1869af86a41930afb159882b62c5c783..229e13d2e8e5fa7d72fb2a942a7cd7ac2732a8bc 100644 (file)
@@ -118,9 +118,7 @@ void TlsClient::ReadableEventHandler(void)
        rc = SSL_read(m_SSL.get(), buffer, bufferSize);
 
        if (rc <= 0) {
-               int error = SSL_get_error(m_SSL.get(), rc);
-
-               switch (error) {
+               switch (SSL_get_error(m_SSL.get(), rc)) {
                        case SSL_ERROR_WANT_WRITE:
                                m_BlockRead = true;
                                /* fall through */
@@ -131,7 +129,7 @@ void TlsClient::ReadableEventHandler(void)
                                return;
                        default:
                                HandleSocketError(OpenSSLException(
-                                   "SSL_read failed", error));
+                                   "SSL_read failed", ERR_get_error()));
                                return;
                }
        }
@@ -156,8 +154,7 @@ void TlsClient::WritableEventHandler(void)
        rc = SSL_write(m_SSL.get(), (const char *)GetSendQueue()->GetReadBuffer(), write_size);
 
        if (rc <= 0) {
-               int error = SSL_get_error(m_SSL.get(), rc);
-               switch (error) {
+               switch (SSL_get_error(m_SSL.get(), rc)) {
                        case SSL_ERROR_WANT_READ:
                                m_BlockWrite = true;
                                /* fall through */
@@ -168,7 +165,7 @@ void TlsClient::WritableEventHandler(void)
                                return;
                        default:
                                HandleSocketError(OpenSSLException(
-                                   "SSL_write failed", error));
+                                   "SSL_write failed", ERR_get_error()));
                                return;
                }
        }
index 630f23fb530d76d0da6c5ff28a498e66297861be..a567950b7cdb553637c061eafb613d5b55e7d35e 100644 (file)
@@ -63,7 +63,6 @@ private:
        void AdjustCheckTimer(void);
 
        void AssignServiceRequestHandler(const Endpoint::Ptr& sender, const RequestMessage& request);
-       void RevokeServiceRequestHandler(const Endpoint::Ptr& sender, const RequestMessage& request);
        void ClearServicesRequestHandler(const Endpoint::Ptr& sender, const RequestMessage& request);
 };
 
index 34e431f3a26f1616f4e6e17b64adcc20adb68965..0da80ac31c875d6896384eb2f70866bf9c7ec104 100644 (file)
@@ -50,7 +50,6 @@ AM_PROG_LEX
 AC_PROG_YACC
 AC_PROG_LIBTOOL
 AX_CXX_GCC_ABI_DEMANGLE
-AX_PTHREAD
 AX_BOOST_BASE
 AX_BOOST_SIGNALS
 AX_BOOST_THREAD
index f73162a4441ea8b9ca9392d006a9e991fdf3e6fe..f5fe5949749c5be8fa87cb39e0a962dd4e9225b7 100644 (file)
@@ -1,9 +1,12 @@
 ## Process this file with automake to produce Makefile.in
 
 
-noinst_LTLIBRARIES =  \
+pkglib_LTLIBRARIES = \
        libpopen_noshell.la
 
-libpopen_noshell_la_SOURCES =  \
+libpopen_noshell_la_SOURCES = \
        popen_noshell.c \
        popen_noshell.h
+
+libpopen_noshell_la_LDFLAGS = \
+       -z now