aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2022-01-13 03:01:08 +0000
committerSaturneric <[email protected]>2022-01-13 03:48:10 +0000
commit90c07542e859b741b100fcb0cc5c081e1e8b2c14 (patch)
tree819726dbf7cfa9dfa78b121df6d7407d890bfe12 /src/main.cpp
parent<chore>(project, resource, ci): fix ci of debug.yml (diff)
downloadGpgFrontend-90c07542e859b741b100fcb0cc5c081e1e8b2c14.tar.gz
GpgFrontend-90c07542e859b741b100fcb0cc5c081e1e8b2c14.zip
<chore>(project, resource, ci): fix ci of debug.yml & release.yml
1. Adjust the ci configuration file for Linux, macOS and Windows. 2. Fixed the problem of OpenSSL under macOS. 3. Use atexit instead of on_exit to solve macOS compatibility issues.
Diffstat (limited to '')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 06edc084..fef03eb8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -41,7 +41,7 @@ extern void init_logging();
extern void init_certs();
extern void init_locale();
extern void handle_signal(int sig);
-extern void before_exit(int status, void* arg);
+extern void before_exit();
int main(int argc, char* argv[]) {
// Register Signals
@@ -50,7 +50,7 @@ int main(int argc, char* argv[]) {
signal(SIGILL, handle_signal);
// clean something before exit
- on_exit(before_exit, nullptr);
+ atexit(before_exit);
// Qt
Q_INIT_RESOURCE(gpgfrontend);