Merge pull request #636 from masm11/fix/restore-sigchld-setting

restore SIGCHLD settings to SIG_DFL. #600
pull/651/head
Alex 2020-03-29 11:00:43 +02:00 committed by GitHub
commit ae3d4b9d28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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 {