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. --- web/attachments/174385-patch-plugins_popen_c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 web/attachments/174385-patch-plugins_popen_c (limited to 'web/attachments/174385-patch-plugins_popen_c') diff --git a/web/attachments/174385-patch-plugins_popen_c b/web/attachments/174385-patch-plugins_popen_c new file mode 100644 index 0000000..b424896 --- /dev/null +++ b/web/attachments/174385-patch-plugins_popen_c @@ -0,0 +1,16 @@ +$OpenBSD$ +--- plugins/popen.c.orig Wed Apr 12 20:42:46 2006 ++++ plugins/popen.c Wed Apr 12 20:42:48 2006 +@@ -268,9 +268,10 @@ popen_sigchld_handler (int signo) + RETSIGTYPE + popen_timeout_alarm_handler (int signo) + { +- int fh; ++ int fh = -1; + if (signo == SIGALRM) { +- fh=fileno (child_process); ++ if (child_process) ++ fh=fileno (child_process); + if(fh >= 0){ + kill (childpid[fh], SIGKILL); + } -- cgit v1.2.3-74-g34f1