mirror of
https://github.com/QuasarApp/CQtDeployer.git
synced 2025-04-26 01:34:33 +00:00
Merge branch 'v1.2' into v1.3
This commit is contained in:
commit
ab46c90783
@ -14,28 +14,8 @@
|
||||
#include <QList>
|
||||
#include <deploy.h>
|
||||
|
||||
#include <signal.h>
|
||||
#include <unistd.h>
|
||||
#include <execinfo.h>
|
||||
|
||||
void handler(int sig) {
|
||||
void *array[10];
|
||||
size_t size;
|
||||
|
||||
// get void*'s for all entries on the stack
|
||||
size = backtrace(array, 10);
|
||||
|
||||
// print out all the frames to stderr
|
||||
fprintf(stderr, "Error: signal %d:\n", sig);
|
||||
backtrace_symbols_fd(array, size, STDERR_FILENO);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
int main(int argc, const char *argv[]) {
|
||||
|
||||
signal(SIGSEGV, handler); // install our handler
|
||||
|
||||
|
||||
QCoreApplication::setOrganizationName("QuasarApp");
|
||||
QCoreApplication::setOrganizationDomain("https://github.com/QuasarApp");
|
||||
QCoreApplication::setApplicationName("CQtDeployer");
|
||||
|
Loading…
x
Reference in New Issue
Block a user