]> 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:36:04 +0000 (11:36 +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, newlib branch
commit 90c22e64ffc52e01ea2c9b81680d4b4a37f2d8c4

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

index d19d1bd316cca6904fad1ab9afb7eff32a66db6d..af83835afa9a8aa8e5b96b693d75a07c6b4cd6e0 100644 (file)
--- a/top/top.c
+++ b/top/top.c
@@ -455,6 +455,7 @@ static void sig_abexit (int sig) {
          *    SIGUSR1 and SIGUSR2 */
 static void sig_endpgm (int dont_care_sig) __attribute__((__noreturn__));
 static void sig_endpgm (int dont_care_sig) {
+   Frames_signal = BREAK_sig;
    bye_bye(NULL);
    (void)dont_care_sig;
 } // end: sig_endpgm