pub fn tcgetsid<Fd: AsFd>(fd: Fd) -> Result<Pid>
tcgetsid(fd)—Return the session ID of the current session with fd as its controlling terminal.
tcgetsid(fd)
fd