During the fork+exec implementation, daemon(3) was moved after
authorbluhm <bluhm@openbsd.org>
Mon, 10 Sep 2018 10:36:01 +0000 (10:36 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 10 Sep 2018 10:36:01 +0000 (10:36 +0000)
commita9955862d6f72f7052d014379ab8b79e9489dbd5
tree02467827ba66427cc1a98054af6bded282e79d61
parent1e3d82d9be818c77a6cb65bca8bb1b73756b0eaf
During the fork+exec implementation, daemon(3) was moved after
proc_init().  As a consequence vmd(8) child processes did not detach
from the terminal anymore.  Dup /dev/null to the stdio file descriptors
in the children.
OK mlarkin@ reyk@
usr.sbin/vmd/proc.c
usr.sbin/vmd/proc.h
usr.sbin/vmd/vmd.c