cuong@portia.Stanford.EDU (Cuong T. Nguyen) (03/15/90)
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. I've tried changing process groups, closing stdio, ioctl(TIOCSPGRP), and whatever else making remote sense. What's rshd doing and what am I missing? Advice appreciated. Thanks. Cuong
luochen@phoenix.Princeton.EDU (Luogi Chen) (03/16/90)
From article <10173@portia.Stanford.EDU>, by cuong@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.