ignore SIGCHLD

Signed-off-by: Leonardo Hernández Hernández <leohdz172@protonmail.com>
This commit is contained in:
Leonardo Hernández Hernández 2022-04-13 14:56:06 -05:00 committed by Raphael Robatsch
parent ad7dea8232
commit 1926a14860

View file

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