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