diff options
author | saturneric <[email protected]> | 2023-11-06 12:49:44 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-11-06 12:49:44 +0000 |
commit | 889cb8092381b073a0f4a0411a4ede04cd7bdd14 (patch) | |
tree | 87ae80ee7be8b426afe869baff7c99384bbafaaa /src/signal.cpp | |
parent | refactor: clean up core's codes (diff) | |
download | GpgFrontend-889cb8092381b073a0f4a0411a4ede04cd7bdd14.tar.gz GpgFrontend-889cb8092381b073a0f4a0411a4ede04cd7bdd14.zip |
refactor: improve the code structure of core
Diffstat (limited to 'src/signal.cpp')
-rw-r--r-- | src/signal.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/signal.cpp b/src/signal.cpp index 5588cc85..f6aff819 100644 --- a/src/signal.cpp +++ b/src/signal.cpp @@ -27,6 +27,7 @@ */ #include <csetjmp> +#include <iostream> #include "GpgFrontend.h" @@ -52,8 +53,8 @@ void handle_signal(int sig) { _repeat_handle_num = 1, last_sig = sig; if (_repeat_handle_num > 3) { - std::cout << "The same signal appears three times," - << "execute the termination operation." << sig; + std::cout << "The same signal appears three times," + << "execute the termination operation." << sig; exit(-1); } |