mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdNews: Prevent double outro by reverting to defautl signal handler
This commit is contained in:
parent
bd39e6b2e0
commit
214890af26
1 changed files with 3 additions and 0 deletions
|
@ -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 ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue