--- nagios-plugins-1.4.1/plugins/popen.c.orig	2005-08-02 13:44:47.631761141 +0200
+++ nagios-plugins-1.4.1/plugins/popen.c	2005-08-02 13:52:24.589616713 +0200
@@ -221,8 +221,13 @@
 		return (1);
 
 	while (waitpid (pid, &status, 0) < 0)
+	{
+		if (errno == ECHILD)
+			return (0);							/* Child has already exited */
+
 		if (errno != EINTR)
 			return (1);							/* error other than EINTR from waitpid() */
+	}
 
 	if (WIFEXITED (status))
 		return (WEXITSTATUS (status));	/* return child's termination status */