Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!ucla-cs!sdcrdcf!trwrb!trwspp!spp2!sol!mcgillis From: mcgillis@sol.UUCP Newsgroups: comp.unix.wizards Subject: ioctl exclusive locks under bsd 4.2 Message-ID: <199@fomalhaut.sol.SPS.TRW.COM> Date: Thu, 2-Apr-87 19:07:58 EST Article-I.D.: fomalhau.199 Posted: Thu Apr 2 19:07:58 1987 Date-Received: Sun, 5-Apr-87 01:05:57 EST Reply-To: mcgillis@sol.UUCP (Jack McGillis) Distribution: na Organization: TRW Inc., Redondo Beach, CA Lines: 16 Sender: Keywords: We are using ioctl (TIOCEXCL, TIOCNXCL) to get exclusive locks on terminal lines. A problem arises when the process with the lock dies (or is killed for daily backups). The lock remains in place until we either reboot or do the following: edit the tty entry (add getty) kill -HUP 1 (init) edit the tty entry (remove getty) fill -HUP 1 (init again) Does anyone know of a better way ? Is this a bug in bsd 4.2 ? Thank you in advance, Jack