From: Jim Warner Date: Wed, 22 Jan 2020 06:00:00 +0000 (-0600) Subject: top: restore one line of code to sig_endpgm() function X-Git-Tag: v3.3.17rc1~98 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed34b1228ed08fbfdbf6f1a61ca7ca62448ccd86;p=procps-ng top: restore one line of code to sig_endpgm() function When that potential abend at program end was addressed in the patch shown below, one line of code was removed in error. That line served to suppress some end-of-job reports should ATEOJ_RPTSTD or ATEOJ_RPTHSH be active. So, this patch restores that previously deleted logic. Reference(s): . potential SEGV fix, master branch commit d37f85c269fbb6e905802ffdbce0ba4173ba21a9 Signed-off-by: Jim Warner --- diff --git a/top/top.c b/top/top.c index 8e8c7d9d..63ec5fe0 100644 --- a/top/top.c +++ b/top/top.c @@ -604,6 +604,7 @@ static void sig_abexit (int sig) { * SIGUSR1 and SIGUSR2 */ static void sig_endpgm (int dont_care_sig) NORETURN; static void sig_endpgm (int dont_care_sig) { + Frames_signal = BREAK_sig; bye_bye(NULL); (void)dont_care_sig; } // end: sig_endpgm