aboutsummaryrefslogtreecommitdiffstats
path: root/security
diff options
context:
space:
mode:
authorsylvio <sylvio@FreeBSD.org>2010-05-20 02:52:10 +0800
committersylvio <sylvio@FreeBSD.org>2010-05-20 02:52:10 +0800
commitdde6136a2510235ad1efad4ba6da2f05f674a9c5 (patch)
treecb89552c87f9032031c3e95378bf1b2537de53e9 /security
parent79607024c0d269e11420a8ec14d1d000bcc86367 (diff)
downloadfreebsd-ports-gnome-dde6136a2510235ad1efad4ba6da2f05f674a9c5.tar.gz
freebsd-ports-gnome-dde6136a2510235ad1efad4ba6da2f05f674a9c5.tar.zst
freebsd-ports-gnome-dde6136a2510235ad1efad4ba6da2f05f674a9c5.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)
Diffstat (limited to 'security')
-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);