The text d31fbb9af159, as FreeBSD 8.2-RELEASE shipped it.
get process session
getsid(2) on FreeBSD now