AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
#Operatingsystems
#Servers
 View Only

setting file-descriptor as controlling terminal

  • 1.  setting file-descriptor as controlling terminal

    Posted 04/16/12 03:26 AM

    Originally posted by: JacksonVille


    Hello,
    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?
    Thanks
    Jacks
    #AIX-Forum