Call daemon() only in parent and before proc_exec() to avoid orphaning child
authortobhe <tobhe@openbsd.org>
Mon, 8 Apr 2024 13:18:54 +0000 (13:18 +0000)
committertobhe <tobhe@openbsd.org>
Mon, 8 Apr 2024 13:18:54 +0000 (13:18 +0000)
commit28fef5effa5e005ff9c95010b6d82fba36cb1702
tree99a40cbb4730f674b6ed53f624c3c44d6a6071f6
parent2a1b6222200eb1b3baf34e048f68e24efed9ac56
Call daemon() only in parent and before proc_exec() to avoid orphaning child
processes. Synced from relayd.

ok florian@
usr.sbin/snmpd/proc.c
usr.sbin/snmpd/snmpd.c