I would like to write a piece of C code which would get a file descriptor of an already allocated pty and set it as the
controlling terminal of current process instead of the current one. in Linux this can be done using the login_tty() call, but my guess it has do be done using several functions in AIX. can someone please provide a code snippet which would do so?
This topic has been locked.