aboutsummaryrefslogtreecommitdiffstats
path: root/src/signal.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2023-02-25 11:49:54 +0000
committerGitHub <[email protected]>2023-02-25 11:49:54 +0000
commitaf1cd680f2496629026ba27707cef2afd860f5f9 (patch)
tree78e78450893e98b8828cc41010e377c1561e5f34 /src/signal.cpp
parentfix: improve manual (diff)
parentfeat: use aqt to install qt in ci build (diff)
downloadGpgFrontend-af1cd680f2496629026ba27707cef2afd860f5f9.tar.gz
GpgFrontend-af1cd680f2496629026ba27707cef2afd860f5f9.zip
Merge pull request #91 from saturneric/dev/2.0.10/main
Develop 2.1.0.1
Diffstat (limited to '')
-rw-r--r--src/signal.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/signal.cpp b/src/signal.cpp
index bd4cfdb1..da4dfb39 100644
--- a/src/signal.cpp
+++ b/src/signal.cpp
@@ -43,7 +43,8 @@ extern jmp_buf recover_env;
*/
void handle_signal(int sig) {
static int _repeat_handle_num = 1, last_sig = sig;
- LOG(INFO) << "signal caught" << sig;
+ // SPDLOG_DEBUG("signal caught {}", sig);
+ std::cout << "signal caught" << sig;
if (last_sig == sig)
_repeat_handle_num++;
@@ -51,8 +52,8 @@ void handle_signal(int sig) {
_repeat_handle_num = 1, last_sig = sig;
if (_repeat_handle_num > 3) {
- LOG(INFO) << "The same signal appears three times, execute the termination "
- "operation. ";
+ std::cout << "The same signal appears three times,"
+ << "execute the termination operation." << sig;
exit(-1);
}