From a335d5d972c9ebd9a2023c103cce07d790e10314 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 5 Oct 2021 16:01:08 +0200 Subject: [PATCH] TT#142600 Exit explicitly from the cleanup signal handler The handler needs to exit explicitly, otherwise we will continue execution as usual. (These signals are trappable and as such will not terminate no matter what.) Fixes: commit a137c6a8534e395b486d910661496f3c02b6ec2a Change-Id: If0e5ad75170ef53eb4cda18d5b20387699909577 --- dhtest.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dhtest.c b/dhtest.c index 9b8d202..b30cf61 100644 --- a/dhtest.c +++ b/dhtest.c @@ -113,6 +113,7 @@ static void cleanup(void) { static void sigcleanup(int sig) { fprintf(stderr, "signal %s received, exiting\n", strsignal(sig)); cleanup(); + exit(0); } static void sigabort(int sig) {