Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-5]: src/usr.bin/systat Pull up revision 1.24 (approved by relen...



details:   https://anonhg.NetBSD.org/src/rev/db0c9dd66f85
branches:  netbsd-1-5
changeset: 489375:db0c9dd66f85
user:      ad <ad%NetBSD.org@localhost>
date:      Mon Sep 04 16:22:58 2000 +0000

description:
Pull up revision 1.24 (approved by releng-1-5):
  - Ignore null commands, instead of inventing a bogus match. See PR 10596.
  - In switch_mode(), display status line even if switching to the same mode.

diffstat:

 usr.bin/systat/cmds.c |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (40 lines):

diff -r 6410e3874f42 -r db0c9dd66f85 usr.bin/systat/cmds.c
--- a/usr.bin/systat/cmds.c     Mon Sep 04 15:21:24 2000 +0000
+++ b/usr.bin/systat/cmds.c     Mon Sep 04 16:22:58 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cmds.c,v 1.21.2.1 2000/09/01 16:36:04 ad Exp $ */
+/*     $NetBSD: cmds.c,v 1.21.2.2 2000/09/04 16:22:58 ad Exp $ */
 
 /*-
  * Copyright (c) 1980, 1992, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)cmds.c     8.2 (Berkeley) 4/29/95";
 #endif
-__RCSID("$NetBSD: cmds.c,v 1.21.2.1 2000/09/01 16:36:04 ad Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.21.2.2 2000/09/04 16:22:58 ad Exp $");
 #endif /* not lint */
 
 #include <stdlib.h>
@@ -59,6 +59,9 @@
        char *args;
        sigset_t set;
 
+       if (cmd[0] == '\0')
+               return;
+
        sigemptyset(&set);
        sigaddset(&set, SIGALRM);
        sigprocmask(SIG_BLOCK, &set, NULL);
@@ -106,8 +109,10 @@
 
        switchfail = 0;
 
-       if (curmode == p)
+       if (curmode == p) {
+               status();
                return;
+       }
 
        alarm(0);
        (*curmode->c_close)(wnd);



Home | Main Index | Thread Index | Old Index