aboutsummaryrefslogtreecommitdiffstats
path: root/main/monit/fix-invalid-use-of-vfork.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/monit/fix-invalid-use-of-vfork.patch')
-rw-r--r--main/monit/fix-invalid-use-of-vfork.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/main/monit/fix-invalid-use-of-vfork.patch b/main/monit/fix-invalid-use-of-vfork.patch
new file mode 100644
index 0000000000..b5c26a202e
--- /dev/null
+++ b/main/monit/fix-invalid-use-of-vfork.patch
@@ -0,0 +1,15 @@
+Upstream report: https://bitbucket.org/tildeslash/monit/issues/867/invalid-use-of-vfork-in-command_execute
+
+diff --git a/libmonit/src/system/Command.c b/libmonit/src/system/Command.c
+index a17fde4..2c75fe4 100644
+--- a/libmonit/src/system/Command.c
++++ b/libmonit/src/system/Command.c
+@@ -497,7 +497,7 @@ Process_T Command_execute(T C) {
+ Process_T P = _Process_new();
+ int descriptors = System_getDescriptorsGuarded();
+ _createPipes(P);
+- if ((P->pid = vfork()) < 0) {
++ if ((P->pid = fork()) < 0) {
+ ERROR("Command: fork failed -- %s\n", System_getLastError());
+ Process_free(&P);
+ return NULL;