]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Do not make SIGCHLD ignored when the pipe backend launches. 16114/head
authorMiod Vallat <miod.vallat@powerdns.com>
Fri, 12 Sep 2025 07:28:00 +0000 (09:28 +0200)
committerMiod Vallat <miod.vallat@powerdns.com>
Fri, 12 Sep 2025 07:28:00 +0000 (09:28 +0200)
The pipe code makes sure to properly invoke waitpid() to reap its child
process, if any. And ignoring SIGCHLD would prevent other legitimate
waitpid() calls from working, such the editor spawned by pdnsutil zone edit.

Fixes: #3680
Signed-off-by: Miod Vallat <miod.vallat@powerdns.com>
modules/pipebackend/pipebackend.cc

index 753bf96e1974bb23405d1b8123da3eb676d7ce06..431b876922e3450f2edb4ef5c3115315aece6861 100644 (file)
@@ -111,7 +111,6 @@ void CoWrapper::receive(string& line)
 PipeBackend::PipeBackend(const string& suffix)
 {
   d_disavow = false;
-  signal(SIGCHLD, SIG_IGN);
   setArgPrefix("pipe" + suffix);
   try {
     launch();