From 3db59260e6ef7501b417eb58016fd41f6365c64e Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Wed, 21 Oct 2009 13:56:36 +0000 Subject: [PATCH] Fix problems with SIGWINCH. From Paul Ripke in PR 42161. --- usr.bin/systat/syscall.c | 7 +++---- usr.bin/systat/vmstat.c | 6 +++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/usr.bin/systat/syscall.c b/usr.bin/systat/syscall.c index 5ffc74851a9..03825a60521 100644 --- a/usr.bin/systat/syscall.c +++ b/usr.bin/systat/syscall.c @@ -1,4 +1,4 @@ -/* $NetBSD: syscall.c,v 1.5 2008/04/29 06:53:04 martin Exp $ */ +/* $NetBSD: syscall.c,v 1.6 2009/04/13 23:20:27 lukem Exp $ */ /*- * Copyright (c) 2006 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__RCSID("$NetBSD: syscall.c,v 1.5 2008/04/29 06:53:04 martin Exp $"); +__RCSID("$NetBSD: syscall.c,v 1.6 2009/04/13 23:20:27 lukem Exp $"); /* System call stats */ @@ -201,9 +201,8 @@ showsyscall(void) etime = cur.cp_etime; /* < 5 ticks - ignore this trash */ if ((etime * hertz) < 1.0) { - if (failcnt++ > MAXFAIL) + if (failcnt++ <= MAXFAIL) return; - failcnt = 0; clear(); mvprintw(2, 10, "The alternate system clock has died!"); mvprintw(3, 10, "Reverting to ``pigs'' display."); diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 140a9df114f..d0de5c273a1 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -1,4 +1,4 @@ -/* $NetBSD: vmstat.c,v 1.72 2009/03/09 19:48:02 njoly Exp $ */ +/* $NetBSD: vmstat.c,v 1.73 2009/04/13 23:20:27 lukem Exp $ */ /*- * Copyright (c) 1983, 1989, 1992, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif -__RCSID("$NetBSD: vmstat.c,v 1.72 2009/03/09 19:48:02 njoly Exp $"); +__RCSID("$NetBSD: vmstat.c,v 1.73 2009/04/13 23:20:27 lukem Exp $"); #endif /* not lint */ /* @@ -498,7 +498,7 @@ showvmstat(void) etime = cur.cp_etime; /* < 5 ticks - ignore this trash */ if ((etime * hertz) < 1.0) { - if (failcnt++ > MAXFAIL) + if (failcnt++ <= MAXFAIL) return; clear(); mvprintw(2, 10, "The alternate system clock has died!"); -- 2.11.4.GIT