Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/dist/ipf/tools Check refresh() error code and bail out if we...
details: https://anonhg.NetBSD.org/src/rev/b6fe88c71de9
branches: trunk
changeset: 565413:b6fe88c71de9
user: christos <christos%NetBSD.org@localhost>
date: Wed Apr 07 17:28:54 2004 +0000
description:
Check refresh() error code and bail out if we lost the terminal.
>From Julian Coleman
diffstat:
dist/ipf/tools/ipfstat.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 5b8b8eac9021 -r b6fe88c71de9 dist/ipf/tools/ipfstat.c
--- a/dist/ipf/tools/ipfstat.c Wed Apr 07 17:27:10 2004 +0000
+++ b/dist/ipf/tools/ipfstat.c Wed Apr 07 17:28:54 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ipfstat.c,v 1.1.1.1 2004/03/28 08:56:32 martti Exp $ */
+/* $NetBSD: ipfstat.c,v 1.2 2004/04/07 17:28:54 christos Exp $ */
/*
* Copyright (C) 1993-2001, 2003 by Darren Reed.
@@ -1244,7 +1244,8 @@
if (redraw)
clearok(stdscr,1);
- refresh();
+ if (refresh() == ERR)
+ break;
if (redraw) {
clearok(stdscr,0);
redraw = 0;
Home |
Main Index |
Thread Index |
Old Index