rwrap: Fix the handle loops for older gcc versions.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
tests: read the return value of kill() before checking it
resolv: Implement faking A and AAAA DNS replies

Adds the possibility of faking a DNS reply based on a hosts-like file.
resolv: Implement SRV faking
resolv: Implement SOA faking
resolv: Implement CNAME faking