privsep after daemonp
radvd.c: close pidfile after validated
radvd.c: check return values of write and chdir
daemonp: don't exit in parent

This allows signalling back up the call stack to allow the parent
to free memory before exiting.  This ensures that memory leaks
reported by valgrind is really leaks.
Merge branch 'privsep_daemonp'