restore SIGCHLD settings to SIG_DFL.
parent
10b152ac3e
commit
af96150f5c
|
@ -88,6 +88,7 @@ inline int32_t forkExec(std::string cmd) {
|
||||||
// Child executes the command
|
// Child executes the command
|
||||||
if (!pid) {
|
if (!pid) {
|
||||||
setpgid(pid, pid);
|
setpgid(pid, pid);
|
||||||
|
signal(SIGCHLD, SIG_DFL);
|
||||||
execl("/bin/sh", "sh", "-c", cmd.c_str(), (char*)0);
|
execl("/bin/sh", "sh", "-c", cmd.c_str(), (char*)0);
|
||||||
exit(0);
|
exit(0);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue