[net.bugs.4bsd] lock

etk (05/12/82)

>From tpdcvax!bobvan Wed May 12 12:06:12 1982
To: ittvax!etk
Subject: bug in lock(1)

Can you please post a not to net.bugs.4bsd for me?

One of our users noticed that lock(1) is easily defeated with a stop
signal as sent with control-Z on the new tty driver.

Thanks.

sjb (05/13/82)

This was one of the two topics covered on lock in my note that I
sent from harpo.  The fix to the ^Z problem is simple -- there
is a line that reads:
	for (x = 1; x <= 16; x++)
(or something like that)
in lock.c that starts a loop that ignores signals.  To fix the
^Z problem, change the 16 to an 18 (or NSIG), and you will ignore
the signal that controls the ^Z feature.