]> granicus.if.org Git - procps-ng/commitdiff
top: program is now more responsive to keyboard inputs <=== port of newlib 3ea1bc77
authorJim Warner <james.warner@comcast.net>
Wed, 15 Jun 2022 05:00:00 +0000 (00:00 -0500)
committerCraig Small <csmall@dropbear.xyz>
Sun, 19 Jun 2022 10:58:51 +0000 (20:58 +1000)
______________________________ original newlib message
--------------------------------------------- ( none )

Signed-off-by: Jim Warner <james.warner@comcast.net>
top/top.c

index 721e82a86cb55bbd1d6f22aa6344c96f272d04da..917c5a2939c97c4d5d0f2ccd866e03e5d3feafd8 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -2094,7 +2094,6 @@ static void adj_geometry (void) {
    Graph_adj = (float)Graph_len / 100.0;
 
    fflush(stdout);
-   Frames_signal = BREAK_off;
 } // end: adj_geometry
 
 
@@ -7182,6 +7181,7 @@ int main (int argc, char *argv[]) {
 
       if (0 < Loops) --Loops;
       if (!Loops) bye_bye(NULL);
+      if (Frames_signal) { Frames_signal = BREAK_off; continue; }
 
       ts.tv_sec = Rc.delay_time;
       ts.tv_nsec = (Rc.delay_time - (int)Rc.delay_time) * 1000000000;