summaryrefslogtreecommitdiff
path: root/security/clamav/files/patch-clamd__others.c
diff options
context:
space:
mode:
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");
+ }