summaryrefslogtreecommitdiff
path: root/security/swatchdog/files/patch-lib_Swatchdog_Actions.pm
blob: 78e49c63adde8cc58fe6f5c0c39a5c0b3cda1cd3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- lib/Swatchdog/Actions.pm.orig	2015-09-29 16:39:26 UTC
+++ lib/Swatchdog/Actions.pm
@@ -96,7 +96,7 @@ sub exec_command {
 
  EXECFORK: {
     if ($exec_pid = fork) {
-      waitpid(-1, WNOHANG);
+      waitpid($exec_pid, 0);
       return 0;
     } elsif (defined $exec_pid) {
       exec($command);