diff options
Diffstat (limited to 'web/attachments/174385-patch-plugins_popen_c')
-rw-r--r-- | web/attachments/174385-patch-plugins_popen_c | 16 |
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 | } | ||