CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2016/09/15 10:16:03
Modified files:
usr.sbin/dhcrelay: dhcrelay.c
usr.sbin/ftp-proxy: ftp-proxy.c
usr.sbin/rtadvd: rtadvd.c
Log message:
Go in the background later, using rdaemon().
rdaemon() works like daemon(3) but requires its caller to pre-open
/dev/null. This makes it possible to go in the background after
a chroot(2), allowing for more error checking. The pattern is basically
- open /dev/null
- chroot
- privdrop
- rdaemon
"design" initialy discussed with semarie@ a while ago, ok dlg@