summaryrefslogtreecommitdiffstats
path: root/web/attachments/174385-patch-plugins_popen_c
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/174385-patch-plugins_popen_c
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/174385-patch-plugins_popen_c')
-rw-r--r--web/attachments/174385-patch-plugins_popen_c16
1 files changed, 16 insertions, 0 deletions
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 @@
1$OpenBSD$
2--- plugins/popen.c.orig Wed Apr 12 20:42:46 2006
3+++ plugins/popen.c Wed Apr 12 20:42:48 2006
4@@ -268,9 +268,10 @@ popen_sigchld_handler (int signo)
5 RETSIGTYPE
6 popen_timeout_alarm_handler (int signo)
7 {
8- int fh;
9+ int fh = -1;
10 if (signo == SIGALRM) {
11- fh=fileno (child_process);
12+ if (child_process)
13+ fh=fileno (child_process);
14 if(fh >= 0){
15 kill (childpid[fh], SIGKILL);
16 }