Path: utzoo!attcan!uunet!munnari!otc!metro!ipso!stcns3!dave From: dave@stcns3.stc.oz (Dave Horsfall) Newsgroups: comp.unix.wizards Subject: Re: Controlling ttys, and how to get rid of them. Keywords: System V, login, tty Message-ID: <1262@stcns3.stc.oz> Date: 19 Jan 89 03:49:57 GMT References: <176@ucms.ucms.uucp> Organization: Alcatel-STC Australia, North Sydney, AUSTRALIA Lines: 23 Reply-To: In article <176@ucms.ucms.uucp> dave@ucms.UUCP (Dave Settle) writes: | | I'm having intermittent problems with 'login' on System V machines. It's | happened on a number of machines, ranging from AT&T 3B2's to more | flavoursome versions of SVR2. | [ Details suppressed ] This is caused by a process doing a setpgrp() to detach itself from the controlling TTY, and the kernel not getting it right. Subsequently, "login" attempts to disable echo with ioctl(), and fails. A work-around is a liberal application of "fuser -k /dev/tty??" to kill it. If that fails, there's a little switch on most machines... Complain to your vendor, and if possible supply a little program that demonstrates it. We had the problem with CCI 6/32 Unix V for a long time, and it finally got fixed in 2.22.02. -- Dave Horsfall (VK2KFU), Alcatel-STC Australia, dave@stcns3.stc.oz dave%stcns3.stc.oz.AU@uunet.UU.NET, ...munnari!stcns3.stc.oz.AU!dave PCs haven't changed computing history - merely repeated it