In article <20140106145033.2bcd...@cvs.netbsd.org>, Andreas Gustafsson <source-changes-d@NetBSD.org> wrote: >-=-=-=-=-=- > >Module Name: src >Committed By: gson >Date: Mon Jan 6 14:50:33 UTC 2014 > >Modified Files: > src/distrib/sets/lists/debug: mi > src/distrib/sets/lists/tests: mi > src/tests/lib/libc/net: Makefile t_hostent.sh >Added Files: > src/tests/lib/libc/net: h_dns_server.c > >Log Message: >Make t_hostent test cases that query the DNS work on systems with no >Internet connectivity, by hijacking DNS queries and /etc/resolv.conf >accesses using librumphijack and providing a minimal DNS server to >answer the queries.
1. Maybe use pipe(2)/dup3() to add O_NOSIGPIPE and perhaps O_CLOEXEC although I am not sure about O_CLOEXEC. 2. s/deamon/daemon/ christos