monit-dev
[Top][All Lists]
Advanced

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

[monit-dev] [monit] r336 committed - AIX: Fix the M/Monit heartbeat. Tha


From: monit
Subject: [monit-dev] [monit] r336 committed - AIX: Fix the M/Monit heartbeat. Thanks to Helen Chen for report....
Date: Tue, 08 Mar 2011 09:10:13 +0000

Revision: 336
Author: address@hidden
Date: Tue Mar  8 01:09:16 2011
Log: AIX: Fix the M/Monit heartbeat. Thanks to Helen Chen for report.

On AIX the pthread.h has to be included as first file or -D_THREAD_SAFE must be used, otherwise the socket interface becomes crazy when used from non-main thread. Since we use standalone thread for heartbeat (status messages) to make the heartbeat keep up with deadline and make it non-blocking, the status messages didn't worked - the socket interface returned usually bunch of random irational errors and only sporadically succeeded. The -D_THREAD_SAFE solves the problem.


http://code.google.com/p/monit/source/detail?r=336

Modified:
 /trunk/CHANGES.txt
 /trunk/configure.ac

=======================================
--- /trunk/CHANGES.txt  Mon Mar  7 00:29:06 2011
+++ /trunk/CHANGES.txt  Tue Mar  8 01:09:16 2011
@@ -18,6 +18,8 @@
 * AIX: Fix the time display which was off by GMT difference. Thanks to
   Helen Chen for report.

+* AIX: Fix the M/Monit heartbeat. Thanks to Helen Chen for report.
+


 Version 5.2.4
=======================================
--- /trunk/configure.ac Mon Feb 28 08:00:47 2011
+++ /trunk/configure.ac Tue Mar  8 01:09:16 2011
@@ -432,7 +432,7 @@
 elif test `uname` = "AIX"
 then
    ARCH="AIX"
-   CFLAGS="$CFLAGS -D _REENTRANT"
+   CFLAGS="$CFLAGS -D_THREAD_SAFE -D_REENTRANT"
    LIBS="$LIBS -lodm"
    # AIX v. 5.2
    LIBS="$LIBS -lcfg"



reply via email to

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