Call daemon() only in parent and before proc_exec() to avoid orphaning child
authortobhe <tobhe@openbsd.org>
Mon, 8 Apr 2024 12:48:26 +0000 (12:48 +0000)
committertobhe <tobhe@openbsd.org>
Mon, 8 Apr 2024 12:48:26 +0000 (12:48 +0000)
commitdac1ed2549823b313f99c75696065ad63c8263b1
tree6383686bf2e7fedda93a0c550aebee681337ee1a
parent4c131d564adf044b93f7799413ffca8765a6d798
Call daemon() only in parent and before proc_exec() to avoid orphaning child
processes. Synced from relayd.

ok mlarkin@ dv@
usr.sbin/vmd/proc.c
usr.sbin/vmd/vmd.c