Compare commits

...

2 Commits

Author SHA1 Message Date
Jason Wen
f42fa59459 Merge branch 'master' into bugfix-updater-signals 2024-08-03 17:29:38 -08:00
DevTekVE
a62b8681e2 Refactor update process execution.
Changed update process execution from a Python to a native process. Updated signal-based process control to match new process configurations.
2024-08-03 18:28:44 +02:00
2 changed files with 3 additions and 3 deletions

View File

@@ -26,7 +26,7 @@
void SoftwarePanel::checkForUpdates() {
std::system("pkill -SIGUSR1 -f system.updated.updated");
std::system("pkill -SIGUSR1 -f updated");
}
SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) {
@@ -45,7 +45,7 @@ SoftwarePanel::SoftwarePanel(QWidget* parent) : ListWidget(parent) {
if (downloadBtn->text() == tr("CHECK")) {
checkForUpdates();
} else {
std::system("pkill -SIGHUP -f system.updated.updated");
std::system("pkill -SIGHUP -f updated");
}
});
addItem(downloadBtn);

View File

@@ -102,7 +102,7 @@ procs = [
PythonProcess("radard", "selfdrive.controls.radard", only_onroad),
PythonProcess("hardwared", "system.hardware.hardwared", always_run),
PythonProcess("tombstoned", "system.tombstoned", always_run, enabled=not PC),
PythonProcess("updated", "system.updated.updated", only_offroad, enabled=not PC),
NativeProcess("updated", "system/updated", ["./updated.py"], only_offroad, enabled=not PC),
PythonProcess("uploader", "system.loggerd.uploader", always_run),
PythonProcess("statsd", "system.statsd", always_run),