]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Wait a bit longer for the process to exit before killing it 12697/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Mar 2023 15:22:27 +0000 (17:22 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 28 Mar 2023 15:22:27 +0000 (17:22 +0200)
This prevents a long list of
```
kill... <Popen: returncode: None args: ['../pdns/dnsdistdist/dnsdist', '--supervised...>
```
when running with TSAN-enabled.
In my tests it did not seem to really slow the build: roughly 3%
slower but that might even be in the error margin for these tests.

regression-tests.dnsdist/dnsdisttests.py

index 05de5e1bd68653b69633a3ac707e56f4f81cde50..dfc6ead966b6e629a105f4518f3d4187dae7f09b 100644 (file)
@@ -174,7 +174,7 @@ class DNSDistTest(AssertEqualDNSMessageMixin, unittest.TestCase):
             return
         try:
             p.terminate()
-            for count in range(10):
+            for count in range(20):
                 x = p.poll()
                 if x is not None:
                     break