Call daemon() only in parent and before proc_exec() to avoid orphaning child
authortobhe <tobhe@openbsd.org>
Mon, 8 Apr 2024 12:45:18 +0000 (12:45 +0000)
committertobhe <tobhe@openbsd.org>
Mon, 8 Apr 2024 12:45:18 +0000 (12:45 +0000)
commit4c131d564adf044b93f7799413ffca8765a6d798
treeb14f8dbe11ea9bf0bc81eba9b73012c81687895c
parent146262ea791a2220a609c41b0b0e51b0a23d9c67
Call daemon() only in parent and before proc_exec() to avoid orphaning child
processes. Synced from relayd.

ok kn@
usr.sbin/httpd/httpd.c
usr.sbin/httpd/proc.c