]> git.ipfire.org Git - thirdparty/bind9.git/commit
Fix the "pipelined" system test on OpenBSD
authorMichał Kępień <michal@isc.org>
Thu, 6 Feb 2020 12:36:32 +0000 (13:36 +0100)
committerOndřej Surý <ondrej@isc.org>
Sat, 8 Feb 2020 22:01:21 +0000 (14:01 -0800)
commita5e90f2aa7eaf12b06fed670ee7e7b93309c7b5e
tree61bd639c8b29989d251c1eee6565b13096cd94a9
parent95483951ce35e6cfc227d55f06ed7402ed6bffc9
Fix the "pipelined" system test on OpenBSD

On OpenBSD, the bin/tests/system/pipelined/ans5/ans.py script does not
shut down when it is sent the SIGTERM signal.  What seems to be
happening is that starting the UDP listening thread somehow makes the
accept() calls in the script's main thread uninterruptible and thus the
SIGTERM signal sent to the main thread does not get processed until a
TCP connection is established with the script's TCP socket.  Work around
the issue by setting a timeout for operations performed on the script's
TCP socket, so that each accept() call in the main thread's infinite
loop returns after at most 1 second, allowing termination signals sent
to the script to be processed.
bin/tests/system/pipelined/ans5/ans.py