How to set control tty (Sys5)

Conor P. Cahill cpcahil at virtech.uucp
Fri Jul 6 11:51:08 AEST 1990


In article <483 at trux.UUCP> car at trux.UUCP (Chris Rende) writes:
>However, I can't figure/find out how to set the control tty. I read in
>TERMIO(7) something like "The first terminal file that gets opened becomes
>the control terminal". When I wrote a program that disassociates itself from
>the control terminal and then does a "fd=open("/dev/ttyi00",O_RDWR);"
>it didn't work. I.e, a "ps -ef" shows "?" for the control tty.

The other requirement is that no other proces has that terminal as its 
controlling terminal.  I would guess that your test is failing because
the tty is the controlling terminal for another process.


-- 
Conor P. Cahill            (703)430-9247        Virtual Technologies, Inc.,
uunet!virtech!cpcahil                           46030 Manekin Plaza, Suite 160
                                                Sterling, VA 22170 



More information about the Comp.unix.wizards mailing list