During the fork+exec implementation, daemon(3) was moved after
authorbluhm <bluhm@openbsd.org>
Sun, 9 Sep 2018 21:06:51 +0000 (21:06 +0000)
committerbluhm <bluhm@openbsd.org>
Sun, 9 Sep 2018 21:06:51 +0000 (21:06 +0000)
commit38b341808c90fc68f4b3301d6743519a6922fd5f
tree905b8aa6285fd61a2aaed0c436c23146c969b3eb
parent65783478510af82ee5301cc77614de6862f79446
During the fork+exec implementation, daemon(3) was moved after
proc_init().  As a consequence httpd(8) and relayd(8) child processes
did not detach from the terminal anymore.  Dup /dev/null to the
stdio file descriptors in the children.
OK benno@
usr.sbin/httpd/httpd.c
usr.sbin/httpd/httpd.h
usr.sbin/httpd/proc.c
usr.sbin/relayd/proc.c
usr.sbin/relayd/relayd.c
usr.sbin/relayd/relayd.h