bind9/bin
Tony Finch 19970088fc Fix hang in named-compilezone | head
I was truncating zone files for experimental purposes when I found
that `named-compilezone | head` got stuck. The full command line that
exhibited the problem was:

	dig axfr dotat.at |
	named-compilezone -o /dev/stdout dotat.at /dev/stdin |
	head

This requires a large enough zone to exhibit the problem, more than
about 70000 bytes of plain text output from named-compilezone.
I was running the command on Debian Stretch amd64.

This was puzzling since it looked like something was suppressing the
SIGPIPE. I used `strace` to examine what was happening at the hang.
The program was just calling write() a lot to print the zone file, and
the last write() hanged until I sent it a SIGINT.

During some discussion with friends, Ian Jackson guessed that opening
/dev/stdout O_RDRW might be the problem, and after some tests we found
that this does in fact suppress SIGPIPE.

Since `named-compilezone` only needs to write to its output file, the
fix is to omit the stdio "+" update flag.

(cherry picked from commit a87ccea032)
2019-10-30 10:52:22 +11:00
..
check Fix hang in named-compilezone | head 2019-10-30 10:52:22 +11:00
confgen Make VS solution upgrading unnecessary 2019-09-27 09:16:02 +02:00
delv bin/delv/delv.c: Fix invalid logic operation in REQUIRE() condition 2019-10-03 09:50:25 +02:00
dig Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-04 14:08:26 +10:00
dnssec Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-04 14:08:26 +10:00
named Disable NSEC Aggressive Cache (synth-from-dnssec) by default 2019-10-29 05:14:34 -05:00
nsupdate Replace RUNTIME_CHECK(dns_name_copy(..., NULL)) with dns_name_copynf() 2019-10-04 14:08:26 +10:00
pkcs11 Make VS solution upgrading unnecessary 2019-09-27 09:16:02 +02:00
plugins add a search for GeoIP2 libraries in configure 2019-06-27 16:25:28 -07:00
python explicitly convert byte to string 2019-03-06 20:41:09 -08:00
rndc Make VS solution upgrading unnecessary 2019-09-27 09:16:02 +02:00
tests Adjust synthfromdnssec system test to the changed defaults 2019-10-29 05:14:34 -05:00
tools Make VS solution upgrading unnecessary 2019-09-27 09:16:02 +02:00
win32/BINDInstall Make VS solution upgrading unnecessary 2019-09-27 09:16:02 +02:00
Makefile.in name change from "hook modules" to "plugins" 2018-12-06 10:36:50 -08:00