mirror of
https://github.com/FelixKratz/SketchyBar
synced 2024-11-23 20:03:10 +00:00
use vfork instead of fork for much better performance
This commit is contained in:
parent
c5569d9600
commit
b4e9c707fd
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ static bool sync_exec(char *command, struct signal_args *args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool fork_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 == -1) return false;
|
||||||
if (pid != 0) return true;
|
if (pid != 0) return true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue