Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/systat Be consistent about whether to block SIGALRM ...



details:   https://anonhg.NetBSD.org/src/rev/94d581b04b8a
branches:  trunk
changeset: 479755:94d581b04b8a
user:      jwise <jwise%NetBSD.org@localhost>
date:      Mon Dec 20 21:59:29 1999 +0000

description:
Be consistent about whether to block SIGALRM before calling command() -- don't
ever do so, as the first thing command() does is block SIGALRM.

diffstat:

 usr.bin/systat/keyboard.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r cf890f053a46 -r 94d581b04b8a usr.bin/systat/keyboard.c
--- a/usr.bin/systat/keyboard.c Mon Dec 20 21:49:11 1999 +0000
+++ b/usr.bin/systat/keyboard.c Mon Dec 20 21:59:29 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: keyboard.c,v 1.8 1999/12/20 20:49:06 jwise Exp $       */
+/*     $NetBSD: keyboard.c,v 1.9 1999/12/20 21:59:29 jwise Exp $       */
 
 /*-
  * Copyright (c) 1980, 1992, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)keyboard.c 8.1 (Berkeley) 6/6/93";
 #endif
-__RCSID("$NetBSD: keyboard.c,v 1.8 1999/12/20 20:49:06 jwise Exp $");
+__RCSID("$NetBSD: keyboard.c,v 1.9 1999/12/20 21:59:29 jwise Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -147,9 +147,7 @@
                /* pass commands as lowercase */
                for (i = 1; i < col ; i++)
                        line[i] = tolower(line[i]);
-               sigprocmask(SIG_BLOCK, &set, NULL);
                command(line + 1);
-               sigprocmask(SIG_UNBLOCK, &set, NULL);
        }
        /* NOTREACHED */
 }



Home | Main Index | Thread Index | Old Index