z (03/24/83)
What determines what is the "controlling terminal" for a process? We are running 4.1BSD, and we have some processes using pseudo-terminals. We would like to have all the processes running on the pty's to consider the pty's to be their controlling terminals, but instead they believe that their controlling terminal is the same as their ancestors'. Is there some way to change a process's controlling terminal? It seems that there should be. Or are you always stuck with whatever terminal was first opened by a process which originally had no controlling terminal (i.e., init)? Steve Zimmerman decvax!cca!z z@cca