restore SIGCHLD settings to SIG_DFL.

This commit is contained in:
Yuuki Harano 2020-03-28 01:35:21 +09:00
parent 10b152ac3e
commit af96150f5c

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 {