]> granicus.if.org Git - procps-ng/commitdiff
top: restore one line of code to sig_endpgm() function
authorJim Warner <james.warner@comcast.net>
Wed, 22 Jan 2020 06:00:00 +0000 (00:00 -0600)
committerCraig Small <csmall@dropbear.xyz>
Tue, 18 Feb 2020 00:20:58 +0000 (11:20 +1100)
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 <james.warner@comcast.net>
top/top.c

index 8e8c7d9dc82b328254d941f484c73415f153fc40..63ec5fe0fcc11529c68050a6c4003e4b6c799f5b 100644 (file)
--- 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