[Nagiosplug-checkins] nagiosplug Makefile.am,1.27,1.28 configure.in,1.147,1.148

Ton Voon tonvoon at users.sourceforge.net
Mon Sep 12 03:32:30 CEST 2005


Update of /cvsroot/nagiosplug/nagiosplug
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23287

Modified Files:
	Makefile.am configure.in 
Log Message:
ECHILD error at waitpid on Red Hat systems (Peter Pramberger and 
Sascha Runschke - 1250191)


Index: Makefile.am
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/Makefile.am,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- Makefile.am	25 Jul 2005 01:47:14 -0000	1.27
+++ Makefile.am	12 Sep 2005 10:31:29 -0000	1.28
@@ -5,7 +5,8 @@
 EXTRA_DIST = config.rpath \
 	ABOUT-NLS ACKNOWLEDGEMENTS AUTHORS BUGS CHANGES CODING FAQ LEGAL \
 	REQUIREMENTS SUPPORT THANKS \
-	NPTest.pm contrib pkg nagios-plugins.spec
+	NPTest.pm contrib pkg nagios-plugins.spec \
+	config_test/Makefile config_test/run_tests config_test/child_test.c
 
 ACLOCAL_AMFLAGS = -I m4
 

Index: configure.in
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/configure.in,v
retrieving revision 1.147
retrieving revision 1.148
diff -u -d -r1.147 -r1.148
--- configure.in	1 Aug 2005 21:24:51 -0000	1.147
+++ configure.in	12 Sep 2005 10:31:29 -0000	1.148
@@ -1520,6 +1520,22 @@
 AM_GNU_GETTEXT([no-libtool], [need-ngettext])
 AM_GNU_GETTEXT_VERSION(0.11.5)
 
+dnl Check for Redhat spopen problem
+dnl Wierd problem where ECHILD is returned from a wait call in error
+dnl Only appears to affect nslookup and dig calls. Only affects redhat around
+dnl 2.6.9-11 (okay in 2.6.9-5). Redhat investigating root cause
+dnl We patch plugins/popen.c
+if echo $ac_cv_uname_r | egrep "\.EL$" >/dev/null 2>&1 ; then
+	AC_MSG_CHECKING(for redhat spopen problem)
+	( cd config_test && make && make test ) > /dev/null 2>&1
+	if test $? -eq 0 ; then
+		AC_MSG_RESULT(okay)
+	else
+		AC_MSG_RESULT(error)
+		AC_DEFINE(REDHAT_SPOPEN_ERROR, 1, "Problem on redhat with spopen")
+	fi
+fi
+
 dnl External libraries - see ACKNOWLEDGEMENTS
 np_COREUTILS
 np_CURL





More information about the Commits mailing list