From: utzoo!decvax!duke!harpo!npoiv!npois!houxi!houxh!houxg!lime!martin
Newsgroups: net.unix-wizards
Title: Re: UUCP and line turn around
Article-I.D.: lime.296
Posted: Sat Aug 21 14:28:43 1982
Received: Sun Aug 22 03:38:49 1982

ima!johnl method works fine but i dont see why you should have to call
enable/disable or even touch the /etc/ttys file. i do this in a different
way, buy checking the lock status in getty.c after the open().

	getty()
	{
		unlock();
		open(tty_name);
		if( locked() )
			forget();
		lock();
		...
		...
	}

uucp has no changes, it produces the lock file and then opens the line (which
will wait for the acu to dial etc etc).

the getty never returns from the forget() call, all that does is wait to be
killed by a SIGHUP, or it checks the LCK.. file every 60 secs.

martin levy, bell labs, holmdel.