Files
RedBear-OS/local
vasilito 37f8b37267 driver-manager: share Arc<DriverConfig> + crash-aware reaper + S3 self_weak (N18 Q1+Q2+S3)
Three changes in one file because the regions are interleaved
and the changes are all upstream of the audit plan's N18
single-day batch.

- Q1: `main.rs:636-661` rewritten to build one
  `Vec<Arc<DriverConfig>>` and pass `Arc::clone` to both
  `DeviceManager` via the new `register_driver_shared` and
  to the reaper registry via `Arc::downgrade`. Removes the dead
  `registry_configs` second-loop block.

- Q2: reaper closure at `main.rs:765-772` interprets
  `waitpid` status via `WIFEXITED && WEXITSTATUS == 0` or
  `WIFSIGNALED && WTERMSIG in (SIGTERM, SIGINT)` as a clean
  exit, routing to `reap_pid_clean`; anything else routes to
  `reap_pid` (crash).

- S3: cfg-gated `set_self_weak(Arc::downgrade(&scheme))`
  call after `set_manager` so the detached AER recovery
  worker can notify the scheme of rebind events.

driver-manager tests: 164 passing (no regression).
2026-07-27 21:55:34 +09:00
..