aboutsummaryrefslogtreecommitdiff
path: root/security/swatch
diff options
context:
space:
mode:
authorSylvio Cesar Teixeira <sylvio@FreeBSD.org>2010-05-19 18:52:10 +0000
committerSylvio Cesar Teixeira <sylvio@FreeBSD.org>2010-05-19 18:52:10 +0000
commit4cf459974d361423c49b0026e57222572081d09d (patch)
tree11f4de4c8c19e889f5f47f58c29c0e1b113feeaf /security/swatch
parent8a1d6540cb5ffb4b48901a5ede2ff2ff53bf34ea (diff)
downloadports-4cf459974d361423c49b0026e57222572081d09d.tar.gz
ports-4cf459974d361423c49b0026e57222572081d09d.zip
- Fix when a Swatch rule has an "exec" action, child processes are not
correctly cleaned up. PR: ports/136611 Submitted by: Thomas Quinot <thomas@cuivre.fr.eu.org> Approved by: Joseph Scott <joseph@josephscott.org> (maintainer)
Notes
Notes: svn path=/head/; revision=254606
Diffstat (limited to 'security/swatch')
-rw-r--r--security/swatch/files/patch-lib-Swatch_Actions.pm11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/swatch/files/patch-lib-Swatch_Actions.pm b/security/swatch/files/patch-lib-Swatch_Actions.pm
new file mode 100644
index 000000000000..efd7fae5d59b
--- /dev/null
+++ b/security/swatch/files/patch-lib-Swatch_Actions.pm
@@ -0,0 +1,11 @@
+--- lib/Swatch/Actions.pm.orig 2010-05-19 15:46:19.000000000 -0300
++++ lib/Swatch/Actions.pm 2010-05-19 15:47:15.000000000 -0300
+@@ -96,7 +96,7 @@
+
+ EXECFORK: {
+ if ($exec_pid = fork) {
+- waitpid(-1, WNOHANG);
++ waitpid($exec_pid, 0);
+ return 0;
+ } elsif (defined $exec_pid) {
+ exec($command);