The text 7f9e8148de7b, as FreeBSD 9.1-RELEASE shipped it.
get session ID associated with a controlling terminal
tcgetsid(3) on FreeBSD now