From 0b6423f9c99d9edf8c96fefd0f6c453859395aa1 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 30 Sep 2013 00:03:24 +0200 Subject: Import Nagios Plugins site Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files. --- .../144118-nagios-plugins-1.4.1-waitpid.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch (limited to 'web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch') diff --git a/web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch b/web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch new file mode 100644 index 0000000..331da4b --- /dev/null +++ b/web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch @@ -0,0 +1,16 @@ +--- 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 */ -- cgit v1.2.3-74-g34f1