*/
#include "cdefs.h"
+#include "cap.h"
#include "conv.h"
#include "decode.h"
#include "dns.h"
daemonize_finish(); /* drop our copy of the lifeline! */
if (signal(SIGUSR1, SIG_IGN) == SIG_ERR)
errx(1, "signal(SIGUSR1, ignore) failed");
+ cap_free_args();
dns_main();
- exit(0);
+ errx(1, "DNS child fell out of dns_main()");
} else {
/* We are the parent. */
close(dns_sock[CHILD]);
host, sizeof(host), NULL, 0, flags);
break;
default:
- ret = EAI_FAMILY;
+ errx(1, "unexpected ip.family = %d", ip.family);
}
if (ret != 0) {