[mod.os.unix] problem with controlling terminals in 4.2/4.3

usenet@mcdchg.UUCP (03/13/87)

I am trying to associate a controlling terminal with a detached
process.  To be exact, I want to run a modified version of script
(/usr/ucb/script) via an rsh(1) link, in order to have the process
that I run have a controlling terminal.  The problem is that when I
run script, or the modified version (modified only to run a different
program), via rsh, ps shows that the remote program and the script
both have "?" for controlling terminal.  I realize that the manual
(tty(4)) ways that if a process has no controlling teminal, that it
can open a /dev/tty?? file and it will become the controlling terminal
for that process.  Nevertheless, it looks like that doesn't work with
rsh-ed programs.  Anybody have any ideas??  I am trying to get
xterm(1), from the X V10R4 distribution, to work via rsh, and xterm
seems to need a controlling terminal in order to work correctly
(otherwise, when the cshell that it created exits, the xterm hangs
as a zombie, I think, and the network connection is left open).
If anybody has any idea what is going wrong, semd me mail, since this
is probably not of great importance to most people on the net.

	--chet--
In Real Life:		Chet Murthy
ARPA:			murthy@svax.cs.cornell.edu
SnailMail:		Chet Murthy
			Gaslight Village Apts 21-B
			Uptown Road
			Ithaca, NY 14850
MaBellNet:		(607)-257-5709