mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
Merge pull request #636 from masm11/fix/restore-sigchld-setting
restore SIGCHLD settings to SIG_DFL. #600
This commit is contained in:
commit
ae3d4b9d28
@ -88,6 +88,7 @@ inline int32_t forkExec(std::string cmd) {
|
||||
// Child executes the command
|
||||
if (!pid) {
|
||||
setpgid(pid, pid);
|
||||
signal(SIGCHLD, SIG_DFL);
|
||||
execl("/bin/sh", "sh", "-c", cmd.c_str(), (char*)0);
|
||||
exit(0);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user