]> granicus.if.org Git - procps-ng/commitdiff
oops -- top keyboard handling broke, 3.1.8 coming soon
authoralbert <>
Thu, 20 Mar 2003 19:12:12 +0000 (19:12 +0000)
committeralbert <>
Thu, 20 Mar 2003 19:12:12 +0000 (19:12 +0000)
Makefile
NEWS
procps.lsm
procps.spec
top.c

index 206928774b984645f018c8715cee168f94198ce9..70ee2ba8b25062be4c140b08b9a07b79705839c9 100644 (file)
--- 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 27fcccf3cd80f7c8d8dc5735aae0d81fa98dccb6..406261d317d2a030a22e26b401f3407dd05a7904 100644 (file)
--- 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
index bd43df191c78daf15780edcfafe2f3f4fb2ec6f7..4243e37ad3b889476b431c0cecfab40e68ea7ef9 100644 (file)
@@ -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 <procps-feedback@lists.sf.net>
 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
index 8771ce162d8233ab1d6ee526ed4d85b49d093b68..72f830ab7f7c54c5866763ab3a9308dbb5060837 100644 (file)
@@ -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 7cff4dfd9470eb1f62d3db899c1d014302de69fa..0dc7a6efd0489a2d7c9ab5730cce230f28960fc3 100644 (file)
--- 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);
+         }
       }
    }