freebsd-skq/usr.bin/lock
Colin Percival 54ca359425 Two fixes here:
1. If fgets fails, don't go into an infinite cpu-intensive loop.  Instead,
check to see if the terminal still exists, and sleep(1) otherwise.
2. When we check to see if the terminal still exists, make sure we're not
mislead by EINTR.  This could have been a security issue, but fortunately
the current implementation of tcgetattr doesn't EINTR.

PR: bin/60758
Approved by: rwatson (mentor)
2004-01-22 04:24:15 +00:00
..
lock.1 Introduce options definition the standard way. 2003-06-09 19:32:02 +00:00
lock.c Two fixes here: 2004-01-22 04:24:15 +00:00
Makefile Remove leaf node WARNS?=2 (that mainly I added). This should 2002-02-08 22:31:43 +00:00