[comp.unix.wizards] ioctl exclusive locks under bsd 4.2

mcgillis@sol.UUCP (04/03/87)

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