From fcb173893df176fd8469eb974cd6d75a3e4221bb Mon Sep 17 00:00:00 2001 From: ensc Date: Fri, 29 Jul 2005 16:28:05 +0000 Subject: [PATCH] this patch reverts the change of the default child_timeout value; it was set to 5 minutes in 0.86.2 which conflicts with the internal mode where a timeout must not be set. So, the clamav-milter would not run with the default configuration --- clamav-0.86.2-timeout.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 clamav-0.86.2-timeout.patch diff --git a/clamav-0.86.2-timeout.patch b/clamav-0.86.2-timeout.patch new file mode 100644 index 0000000..af252b2 --- /dev/null +++ b/clamav-0.86.2-timeout.patch @@ -0,0 +1,11 @@ +--- clamav-0.86.2/clamav-milter/clamav-milter.c.timeout ++++ clamav-0.86.2/clamav-milter/clamav-milter.c +@@ -373,7 +373,7 @@ + static pthread_cond_t n_children_cond = PTHREAD_COND_INITIALIZER; + static volatile unsigned int n_children = 0; + static unsigned int max_children = 0; +-static int child_timeout = 300; /* number of seconds to wait for ++static int child_timeout = 0; /* number of seconds to wait for + * a child to die. Set to 0 to + * wait forever + */