Jaakko Heinonen c2dbb0de27 - 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
..
2009-10-05 19:29:49 +00:00
2009-04-01 08:33:54 +00:00
2009-09-23 15:32:59 +00:00
2009-07-31 08:37:27 +00:00
2009-07-08 10:16:16 +00:00
2009-06-23 23:17:04 +00:00
2009-01-16 15:00:30 +00:00
2009-06-15 21:52:27 +00:00
2009-09-20 15:47:31 +00:00
2009-02-11 20:36:17 +00:00
2009-02-21 03:38:46 +00:00
2009-02-21 03:42:31 +00:00
2009-06-15 21:52:27 +00:00