diff options
author | Jim Warner <james.warner@comcast.net> | 2022-09-12 00:00:00 -0500 |
---|---|---|
committer | Craig Small <csmall@dropbear.xyz> | 2022-09-13 20:08:22 +1000 |
commit | c066bbe5e23b32a5b83584ec725a49e992ff6102 (patch) | |
tree | 7a5d100b7e4c1adc4e9fe2a5aa78259261e9dfc8 | |
parent | ad4429ade07abe2133dd53341fa91639625f09a0 (diff) | |
download | procps-ng-c066bbe5e23b32a5b83584ec725a49e992ff6102.tar.gz |
top: fix an improper behavior following a SIGWINCH bug <=== port of newlib 9d999370
______________________________ original newlib message
----------------------------------- ( minus git hash )
When top was made more responsive to keyboard input in
that commit referenced below, his previous response to
a SIGWINCH was upset. Formerly, that display integrity
was restored with the next refresh cycle. But, without
this patch, one must strike some key to accomplish it.
[ in truth, this patch vastly improves that sigwinch ]
[ response. whereas before, although integrity would ]
[ be restored automatically, it did not happen until ]
[ the next regular refresh. now it is instantaneous! ]
Reference(s):
. May, 2022 - made more responsive to kdb input
commit ........................................
Signed-off-by: Jim Warner <james.warner@comcast.net>
-rw-r--r-- | top/top.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -7244,7 +7244,7 @@ int main (int argc, char *argv[]) { if (0 < Loops) --Loops; if (!Loops) bye_bye(NULL); - if (Frames_signal) { Frames_signal = BREAK_off; continue; } + if (Frames_signal) { Frames_signal = BREAK_off; zap_fieldstab(); continue; } ts.tv_sec = Rc.delay_time; ts.tv_nsec = (Rc.delay_time - (int)Rc.delay_time) * 1000000000; |