From f5d42ca11d5ad2fc6ee88606765ec837180d7be0 Mon Sep 17 00:00:00 2001 From: albert <> Date: Thu, 20 Mar 2003 19:12:12 +0000 Subject: [PATCH] oops -- top keyboard handling broke, 3.1.8 coming soon --- Makefile | 6 +++--- NEWS | 4 ++++ procps.lsm | 12 ++++++------ procps.spec | 2 +- top.c | 8 ++++++-- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 20692877..70ee2ba8 100644 --- a/Makefile +++ b/Makefile @@ -18,9 +18,9 @@ VERSION := 3 SUBVERSION := 1 -MINORVERSION := 7 -TARVERSION := 3.1.7 -LIBVERSION := 3.1.7 +MINORVERSION := 8 +TARVERSION := 3.1.8 +LIBVERSION := 3.1.8 ############ vars diff --git a/NEWS b/NEWS index 27fcccf3..406261d3 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,7 @@ +procps-3.1.7 --> procps-3.1.8 + +top: fix keyboard handling (help screen, etc.) + procps-3.1.6 --> procps-3.1.7 Makefile: made SKIP feature easier to use diff --git a/procps.lsm b/procps.lsm index bd43df19..4243e37a 100644 --- a/procps.lsm +++ b/procps.lsm @@ -1,15 +1,15 @@ Begin4 Title: procps -Version: 3.1.7 -Entered-date: 2003-3-18 +Version: 3.1.8 +Entered-date: 2003-03-19 Description: Linux system utilities -Keywords: procps /proc libproc sysctl pmap - ps uptime tload free w top vmstat watch skill snice kill pgrep pkill +Keywords: procps /proc libproc sysctl pmap ps uptime tload + free w top vmstat watch skill snice kill pgrep pkill Author: Albert Cahalan, Michael K. Johnson, Jim Warner, etc. Maintained-by: various Primary-site: http://procps.sf.net/ - 239kB procps-3.1.7.tar.gz + 239kB procps-3.1.8.tar.gz Alternate-site: http://www.debian.org/Packages/unstable/base/procps.html - 239kB procps-3.1.7.tar.gz + 239kB procps-3.1.8.tar.gz Copying-policy: mixed End diff --git a/procps.spec b/procps.spec index 8771ce16..72f830ab 100644 --- a/procps.spec +++ b/procps.spec @@ -3,7 +3,7 @@ Summary: System and process monitoring utilities Name: procps %define major_version 3 %define minor_version 1 -%define revision 7 +%define revision 8 %define version %{major_version}.%{minor_version}.%{revision} Version: %{version} Release: 1 diff --git a/top.c b/top.c index 7cff4dfd..0dc7a6ef 100644 --- a/top.c +++ b/top.c @@ -3262,8 +3262,12 @@ int main (int dont_care_argc, char **argv) fcntl(STDIN_FILENO, F_SETFL, O_NONBLOCK|file_flags); // check 1st, in case tv zeroed (by sig handler) before it got set if (chin(0, &c, 1) <= 0) select(1, &fs, NULL, NULL, &tv); - if (chin(0, &c, 1) > 0) do_key((unsigned)c); - fcntl(STDIN_FILENO, F_SETFL, file_flags); + if (chin(0, &c, 1) > 0) { + fcntl(STDIN_FILENO, F_SETFL, file_flags); + do_key((unsigned)c); + } else { + fcntl(STDIN_FILENO, F_SETFL, file_flags); + } } }