diff options
author | 2019-07-15 19:16:01 +0200 | |
---|---|---|
committer | 2019-07-15 19:16:01 +0200 | |
commit | 5d204d6730d7e64e23ab2cbfcc65b986b6c4477d (patch) | |
tree | 5756fd13cc19187ac3dad61a650247d24dd50300 | |
parent | 9a7d6c02346a147b6ef356f49bd868de85a2ffb8 (diff) | |
download | synthpod-5d204d6730d7e64e23ab2cbfcc65b986b6c4477d.tar.gz synthpod-5d204d6730d7e64e23ab2cbfcc65b986b6c4477d.tar.bz2 synthpod-5d204d6730d7e64e23ab2cbfcc65b986b6c4477d.tar.xz synthpod-5d204d6730d7e64e23ab2cbfcc65b986b6c4477d.zip |
use vfork instead of fork.
-rw-r--r-- | VERSION | 2 | ||||
-rw-r--r-- | bin/synthpod_bin.c | 4 | ||||
-rw-r--r-- | plugins/synthpod_common_nk.c | 4 |
3 files changed, 5 insertions, 5 deletions
@@ -1 +1 @@ -0.1.6001 +0.1.6003 diff --git a/bin/synthpod_bin.c b/bin/synthpod_bin.c index 55c5f0bf..cd630807 100644 --- a/bin/synthpod_bin.c +++ b/bin/synthpod_bin.c @@ -17,7 +17,7 @@ #include <getopt.h> #include <inttypes.h> -#include <unistd.h> // fork +#include <unistd.h> // vfork #include <sys/wait.h> // waitpid #include <errno.h> // waitpid #include <signal.h> @@ -769,7 +769,7 @@ bin_show(bin_t *bin) snprintf(wname, sizeof(wname), "Synthpod - %s", bin->socket_path); snprintf(minimum, sizeof(minimum), "%zu", SBOX_BUF_SIZE); - bin->child = fork(); + bin->child = vfork(); if(bin->child == 0) // child { char *const args [] = { diff --git a/plugins/synthpod_common_nk.c b/plugins/synthpod_common_nk.c index ea40312d..3efefc6b 100644 --- a/plugins/synthpod_common_nk.c +++ b/plugins/synthpod_common_nk.c @@ -35,7 +35,7 @@ #include <sandbox_master.h> #include <math.h> -#include <unistd.h> // fork +#include <unistd.h> // vfork #include <sys/wait.h> // waitpid #include <errno.h> // waitpid #include <time.h> @@ -3022,7 +3022,7 @@ _mod_ui_run(mod_ui_t *mod_ui, bool sync) _patch_notification_add_patch_get(handle, mod, handle->regs.port.event_transfer.urid, mod->subj, 0, 0); // patch:Get [] - const pid_t pid = fork(); + const pid_t pid = vfork(); if(pid == 0) // child { char *const args [] = { |