From 214890af26a316ac4093f8c5485439c4a5ef237e Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 2 Oct 2021 16:07:51 -0400 Subject: [PATCH] CmdNews: Prevent double outro by reverting to defautl signal handler --- src/commands/CmdNews.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/CmdNews.cpp b/src/commands/CmdNews.cpp index 9610e1958..f94295a1e 100644 --- a/src/commands/CmdNews.cpp +++ b/src/commands/CmdNews.cpp @@ -590,6 +590,9 @@ int CmdNews::execute (std::string& output) { CmdConfig::setConfigVariable ("news.version", "2.6.0", false); + // Revert back to default signal handling after displaying the outro + signal (SIGINT, SIG_DFL); + std::string question = format ( "\nWould you like to open Taskwarrior {1} fundraising campaign to read more?", now.year ()