Fix problems with SIGWINCH. From Paul Ripke in PR 42161.
This commit is contained in:
parent
b5fa4b8f63
commit
d5ecf43f6a
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: syscall.c,v 1.6 2009/04/13 23:20:27 lukem Exp $ */
|
||||
/* $NetBSD: syscall.c,v 1.7 2009/10/21 13:56:36 wiz Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 The NetBSD Foundation, Inc.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__RCSID("$NetBSD: syscall.c,v 1.6 2009/04/13 23:20:27 lukem Exp $");
|
||||
__RCSID("$NetBSD: syscall.c,v 1.7 2009/10/21 13:56:36 wiz 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.");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vmstat.c,v 1.73 2009/04/13 23:20:27 lukem Exp $ */
|
||||
/* $NetBSD: vmstat.c,v 1.74 2009/10/21 13:56:36 wiz 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.73 2009/04/13 23:20:27 lukem Exp $");
|
||||
__RCSID("$NetBSD: vmstat.c,v 1.74 2009/10/21 13:56:36 wiz 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!");
|
||||
|
|
Loading…
Reference in New Issue