The text 51e668453a8e, as FreeBSD 12.0-RELEASE shipped it.
get process session
getsid(2) on FreeBSD now