jh 5abd9242cb - Catch SIGHUP to perform cleanup before exiting.
- Exit if getch() returns with an error other than EINTR. Otherwise
  systat(1) may get stuck in an infinite loop if it doesn't receive
  SIGHUP when terminal closes. [1]
- Remove attempt to clear stdio error indicators. getch() doesn't use
  stdio, making it useless. [2]
- Remove unneeded masking of getch() return value. [2]

PR:		bin/107171
Reviewed by:	bde
Approved by:	trasz (mentor)
Obtained from:	OpenBSD [1]
Suggested by:	bde [2]
MFC after:	1 month
2009-10-11 12:32:25 +00:00
..
2008-01-16 19:27:43 +00:00
2007-10-15 20:00:24 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2007-10-15 20:00:24 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2007-10-15 20:00:24 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2008-01-16 19:27:43 +00:00
2007-10-15 20:00:24 +00:00
2008-01-16 19:27:43 +00:00