Register panic handlers early in main()

This commit is contained in:
Levi Neely 2026-03-08 18:38:14 +01:00
parent bf1d1caf2f
commit a53b09362f
1 changed files with 5 additions and 0 deletions

View File

@ -35,6 +35,7 @@
#include "pclsync_lib.h"
#include "pclsync/psettings.h"
#include "pclsync/psignal.h"
namespace po = boost::program_options;
namespace ct = control_tools;
@ -44,6 +45,10 @@ namespace cc = console_client;
static std::string version = "git-lneely";
int main(int argc, char **argv) {
psignal_register(SIGSEGV);
psignal_register(SIGABRT);
psignal_register(SIGBUS);
std::cout << "pCloud console client (" << version << ")" << std::endl;
std::string username = "";
std::string password = "";