From: Jim Warner Date: Wed, 7 Sep 2022 05:00:00 +0000 (-0500) Subject: top: fix an improper behavior following a SIGWINCH bug X-Git-Tag: v4.0.1rc2~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d9993708b1854f7396b978a6d54d6c508e1fd08;p=procps-ng top: fix an improper behavior following a SIGWINCH bug 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 3ea1bc779fb7ca5bf065a5ca620ec5b5823bc61c Signed-off-by: Jim Warner --- diff --git a/src/top/top.c b/src/top/top.c index 2f4ea47a..682fbc51 100644 --- a/src/top/top.c +++ b/src/top/top.c @@ -7176,7 +7176,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;