Date: Sun, 15 Nov 2009 14:11:26 +0000 (UTC) From: Jaakko Heinonen <jh@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/usr.bin/systat keyboard.c main.c Message-ID: <200911151411.nAFEBtDf038664@repoman.freebsd.org>
index | next in thread | raw e-mail
jh 2009-11-15 14:11:26 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_8)
usr.bin/systat keyboard.c main.c
Log:
SVN rev 199290 on 2009-11-15 14:11:26Z by jh
MFC r197956:
- 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.
- Remove attempt to clear stdio error indicators. getch() doesn't use
stdio, making it useless.
- Remove unneeded masking of getch() return value.
PR: bin/107171
Approved by: trasz (mentor)
Revision Changes Path
1.3.2.2 +7 -4 src/usr.bin/systat/keyboard.c
1.21.2.2 +1 -0 src/usr.bin/systat/main.c
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200911151411.nAFEBtDf038664>
