Revert "Remove setproctitle (#32716)" (#33195)

* Revert "Remove `setproctitle` (#32716)"

This reverts commit 9020d1931f4cd72f8162e4402278bdf76e3746f2.

* uv lock

* old name
old-commit-hash: 29b58d4f2fcc982d5c06ed8391e368b1b293a96c
This commit is contained in:
Adeeb Shihadeh
2024-08-05 16:42:22 -07:00
committed by GitHub
parent df13b36638
commit fc469e5f80
9 changed files with 65 additions and 59 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ from collections.abc import Callable, ValuesView
from abc import ABC, abstractmethod
from multiprocessing import Process
from openpilot.common.threadname import setthreadname
from setproctitle import setproctitle
from cereal import car, log
import cereal.messaging as messaging
@@ -27,7 +27,7 @@ def launcher(proc: str, name: str) -> None:
mod = importlib.import_module(proc)
# rename the process
setthreadname(proc)
setproctitle(proc)
# create new context since we forked
messaging.reset_context()