Skip to content

Commit

Permalink
fix: stuck after the crash
Browse files Browse the repository at this point in the history
log: as title
  • Loading branch information
tsic404 authored and deepin-bot[bot] committed Oct 15, 2024
1 parent b9e2667 commit 322554b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions shell/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,6 @@ static void disableLogOutput()
QLoggingCategory::setFilterRules("*.debug=false");
}

static void exitApp(int signal)
{
Q_UNUSED(signal);
QCoreApplication::exit();
}

class AppletManager
{
public:
Expand Down Expand Up @@ -147,12 +141,6 @@ int main(int argc, char *argv[])
Dtk::Core::DLogManager::registerJournalAppender();
qCInfo(dsLog) << "Log path is:" << Dtk::Core::DLogManager::getlogFilePath();

// add signal handler, and call QCoreApplication::exit.
std::signal(SIGINT, exitApp);
std::signal(SIGABRT, exitApp);
std::signal(SIGTERM, exitApp);
std::signal(SIGKILL, exitApp);

Shell shell;
QString serviceName(parser.value(dbusServiceNameOption));
if (!parser.isSet(dbusServiceNameOption)) {
Expand Down

0 comments on commit 322554b

Please sign in to comment.