Skip to content

Commit e69d124

Browse files
committed
fix(app): force forkserver > spawn for Process
resolves #266
1 parent 12b8edd commit e69d124

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

src/rovr/__main__.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,12 +340,19 @@ def _get_version() -> list[str]:
340340
if args.force_first_launch:
341341
return
342342

343-
from rovr.functions.config import set_nested_value # noqa: I001
344-
from rovr.variables.constants import config
343+
import multiprocessing # noqa: I001
345344

346345
import rovr.monkey_patches._classes # noqa: F401
347346
import rovr.monkey_patches._platform # noqa: F401
348347

348+
from rovr.functions.config import set_nested_value
349+
from rovr.variables.constants import config
350+
351+
try:
352+
multiprocessing.set_start_method("forkserver", force=True)
353+
except ValueError:
354+
multiprocessing.set_start_method("spawn", force=True)
355+
349356
for feature_path in args.with_features:
350357
set_nested_value(cast(dict, config), feature_path, True)
351358

src/rovr/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,7 +682,7 @@ def watch_for_changes_and_update(self) -> None:
682682
except Exception as exc:
683683
self.notify(
684684
f"{type(exc).__name__}: {exc}",
685-
title="Change Watcher",
685+
title="Drives Watcher",
686686
severity="warning",
687687
markup=False,
688688
)

0 commit comments

Comments
 (0)