The text e3b9cbb85cda, as FreeBSD 12.3-RELEASE shipped it.
create session and set process group ID
setsid(2) on FreeBSD now