summaryrefslogtreecommitdiff
path: root/security/clamav/files/patch-clamd__others.c
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2010-12-16 17:43:46 +0000
committerRenato Botelho <garga@FreeBSD.org>2010-12-16 17:43:46 +0000
commit5fd53e4b0ffc9ad5ed8d0bdcfb1faa2f09096ab0 (patch)
treee7cceef326b2dfd71017891e33b95aae73501292 /security/clamav/files/patch-clamd__others.c
parent- Fix AMR dependencies (and thus, plist outside of tb. avidemux now (diff)
- On 0.96.5, clamav was leaving some zombie proccess of freshclam, fix it.
- Bump PORTREVISION Submitted by: Herbert J. Skuhra <h.skuhra@gmail.com> Obtained from: http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff;h=2e136dcd0d7c34dc742475529db022d80d0dde2e http://git.clamav.net/gitweb?p=clamav-devel.git;a=commitdiff;h=3c91587c8c894e898345086ef8e7a072fdf7b1bc
Notes
Notes: svn path=/head/; revision=266440
Diffstat (limited to 'security/clamav/files/patch-clamd__others.c')
-rw-r--r--security/clamav/files/patch-clamd__others.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/clamav/files/patch-clamd__others.c b/security/clamav/files/patch-clamd__others.c
new file mode 100644
index 000000000000..8276847fa95c
--- /dev/null
+++ b/security/clamav/files/patch-clamd__others.c
@@ -0,0 +1,11 @@
+--- clamd/others.c.orig 2010-11-05 10:48:02.000000000 +0100
++++ clamd/others.c 2010-12-16 15:41:59.000000000 +0100
+@@ -146,7 +146,7 @@
+ exit(execle("/bin/sh", "sh", "-c", buffer_cmd, NULL, env));
+ } else if(pid > 0) { /* parent */
+ pthread_mutex_unlock(&virusaction_lock);
+- waitpid(pid, NULL, 0);
++ while(waitpid(pid, NULL, 0) == -1 && errno == EINTR);
+ } else {
+ logg("!VirusEvent: fork failed.\n");
+ }