mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
parent
1962caf144
commit
d20a586734
@ -90,6 +90,8 @@ inline int32_t forkExec(std::string cmd) {
|
||||
setpgid(pid, pid);
|
||||
execl("/bin/sh", "sh", "-c", cmd.c_str(), (char*)0);
|
||||
exit(0);
|
||||
} else {
|
||||
signal(SIGCHLD,SIG_IGN);
|
||||
}
|
||||
|
||||
return pid;
|
||||
|
Loading…
Reference in New Issue
Block a user