util/chpty.cc
/// Closes the controlling fd, if open.
/// * Does NOT throw.
///
Closes the controlling fd, if open.
Does NOT throw.
Closes the controlling fd if open . Does NOT throw .
void Pty_controller::close_pty()
{
    if (m_cfd != non_fd) {
        close(m_cfd);
        m_cfd = non_fd;
    }
}
void Pty_controller :: close_pty ( ) { if ( m_cfd != non_fd ) { close ( m_cfd ) ; m_cfd = non_fd ; } }
Closes the controlling fd, if open.
Closes the controlling fd if open .