Merge pull request #636 from masm11/fix/restore-sigchld-setting
restore SIGCHLD settings to SIG_DFL. #600pull/651/head
commit
ae3d4b9d28
|
@ -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