pub fn tcgetsid(fd: RawFd) -> pid_t
Returns the process group ID of the controlling terminal’s session.
fd