mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-26 18:22:07 +08:00
3af7b02a26
* Update main.cc
* Update util.h
* same for navd
old-commit-hash: e780cca8b6
19 lines
393 B
C++
19 lines
393 B
C++
#include <sys/resource.h>
|
|
|
|
#include <QApplication>
|
|
|
|
#include "selfdrive/ui/qt/util.h"
|
|
#include "selfdrive/ui/soundd/sound.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
qInstallMessageHandler(swagLogMessageHandler);
|
|
setpriority(PRIO_PROCESS, 0, -20);
|
|
|
|
QApplication a(argc, argv);
|
|
std::signal(SIGINT, sigTermHandler);
|
|
std::signal(SIGTERM, sigTermHandler);
|
|
|
|
Sound sound;
|
|
return a.exec();
|
|
}
|