Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site bocklin.UUCP Path: utzoo!linus!decvax!ucbvax!ucdavis!lll-crg!seismo!hao!noao!arizona!bocklin!mms From: mms@bocklin.UUCP Newsgroups: net.unix-wizards Subject: reassigning a control terminal Message-ID: <385@bocklin.UUCP> Date: Mon, 7-Oct-85 20:54:02 EDT Article-I.D.: bocklin.385 Posted: Mon Oct 7 20:54:02 1985 Date-Received: Fri, 11-Oct-85 06:51:56 EDT Distribution: net Organization: Dept of CS, U of Arizona, Tucson Lines: 19 Is there any way to reassign the control terminal associated with a process that has been forked from a process to which a control ter- minal is associated? That is, can I get a forked process to change the device associated with /dev/tty? We are running 4.2bsd. I could be overlooking something very simple, but then again, I've not been successful. If it is possible, could someone outline the necessary proceedure? (Mail it to me directly if I'm being overly ignorant). My underlying motivation is to turn off logins in /etc/ttys for some device, and have another process that emulates init do "execl getty" on that device. However, getty seems to operate on the control ter- minal it is associated with. -- Mark M. Swenson Department of Computer Science mms%arizona@csnet-relay The University of Arizona {ihnp4,noao,mcnc,utah-cs}!arizona!mms Tucson, Arizona 85721 // USA