How to get the real name of the controlling terminal?
How can one get the real name of the controlling terminal (if there is one, else an error) as a pathname?
How can one get the real name of the controlling terminal (if there is one, else an error) as a pathname?
Can some one please explain in an easy to understand way the concept of controlling terminal in unix and unix like systems ? Is it related to a session ? If yes, then how ?
From The Linux Programming Interface