rshd and control terminal

Luogi Chen luochen at phoenix.Princeton.EDU
Fri Mar 16 16:13:11 AEST 1990


>From article <10173 at portia.Stanford.EDU>, by cuong at portia.Stanford.EDU (Cuong T. Nguyen):
> When I start a process via rsh (e.g., rsh <host> <process>),
> I do not seem to be able to associate that (unattached) process
> to a control terminal through an open(2), even though the open()
> itself succeeds.  This is true at least on a pmax running
> Ultrix 2.0.

If a process without a control terminal opens a tty, this tty will be the
control terminal of the process. The criterion for whether a process has
a control terminal is if this process can successfully open(2) "/dev/tty",
which is always a synonym of the control terminal(c.f. tty(4)). The open
call is successful on VAX8700 running Ultrix 2.0. I wonder if you are using
the same criterion.



More information about the Comp.unix.questions mailing list