ignore SIGCHLD
Signed-off-by: Leonardo Hernández Hernández <leohdz172@protonmail.com>
This commit is contained in:
parent
ad7dea8232
commit
1926a14860
1 changed files with 6 additions and 0 deletions
|
@ -494,6 +494,12 @@ int main(int argc, char* argv[])
|
|||
diesys("sigaction");
|
||||
}
|
||||
|
||||
struct sigaction chld_handler = {};
|
||||
chld_handler.sa_handler = SIG_IGN;
|
||||
if (sigaction(SIGCHLD, &chld_handler, nullptr) < 0) {
|
||||
die("sigaction");
|
||||
}
|
||||
|
||||
pollfds.push_back({
|
||||
.fd = signalSelfPipe[0],
|
||||
.events = POLLIN,
|
||||
|
|
Loading…
Reference in a new issue