summaryrefslogtreecommitdiffstats
path: root/web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch
diff options
context:
space:
mode:
authorHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
committerHolger Weiss <holger@zedat.fu-berlin.de>2013-09-29 22:03:24 (GMT)
commit0b6423f9c99d9edf8c96fefd0f6c453859395aa1 (patch)
tree1c2b6b21704a294940f87c7892676998d8371707 /web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch
downloadsite-0b6423f9c99d9edf8c96fefd0f6c453859395aa1.tar.gz
Import Nagios Plugins site
Import the Nagios Plugins web site, Cronjobs, infrastructure scripts, and configuration files.
Diffstat (limited to 'web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch')
-rw-r--r--web/attachments/144118-nagios-plugins-1.4.1-waitpid.patch16
1 files changed, 16 insertions, 0 deletions
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 @@
1--- nagios-plugins-1.4.1/plugins/popen.c.orig 2005-08-02 13:44:47.631761141 +0200
2+++ nagios-plugins-1.4.1/plugins/popen.c 2005-08-02 13:52:24.589616713 +0200
3@@ -221,8 +221,13 @@
4 return (1);
5
6 while (waitpid (pid, &status, 0) < 0)
7+ {
8+ if (errno == ECHILD)
9+ return (0); /* Child has already exited */
10+
11 if (errno != EINTR)
12 return (1); /* error other than EINTR from waitpid() */
13+ }
14
15 if (WIFEXITED (status))
16 return (WEXITSTATUS (status)); /* return child's termination status */