addrcheck: Run address verification services with a timeout.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 27 Apr 2006 19:33:39 +0000 (20:33 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 27 Apr 2006 19:33:39 +0000 (20:33 +0100)
commite7392cec2d435b867af537c0a46ef77ba600abb8
tree97077eecb8cb43a7b73551e96db58fb227810ec6
parent19de3a724957f431fcee39ab79d158e5d279e188
addrcheck: Run address verification services with a timeout.

This entails reordering the code which reads the answer, to check for
the process exiting before reading its output.  This also means that
we deadlock the service if it tries to write more than a pipe-buffer's
worth of stuff, but we're expecting a single character, dammit -- it
shouldn't try to give us an essay.

If the timeout goes off, we report a temporary failure, as with any
other untoward situation.
addrcheck.c