use vfork instead of fork for much better performance

This commit is contained in:
FelixKratz 2021-10-04 22:46:03 +02:00
parent c5569d9600
commit b4e9c707fd

View file

@ -190,7 +190,7 @@ static bool sync_exec(char *command, struct signal_args *args) {
}
static bool fork_exec(char *command, struct signal_args *args) {
int pid = fork();
int pid = vfork();
if (pid == -1) return false;
if (pid != 0) return true;