mirror of
https://github.com/marcoallegretti/WEFT_OS.git
synced 2026-11-22 08:13:59 +00:00
A runtime outlived the weft-appd that started it. Runtimes run in their own systemd scopes, outside weft-appd's service, and a component that waits for messages, as the Counter and Notes demos do, keeps polling a closed connection forever. Each time weft-appd stopped or restarted and restored the previous session, the earlier runtimes stayed behind. The connection is the session: a thread waits for it to hang up, without reading from it, and the runtime then exits whatever the component is doing. That covers weft-appd closing the connection, weft-appd ending, and the runtime ending the connection itself after a failed send or an overlong message. A runtime given an IPC socket it cannot connect to now fails instead of running unreachable. weft-appd's relay notes that it must not shut down half of the connection, which would now end the session. tests/runtime/check_grants.py runs the real runtime on the Counter component over a Unix socket: it answers an increment, and once the test closes its end the runtime exits with status 0 within 10 seconds; with the watcher removed it keeps running and the check fails. A unit test checks that the wait sees a hangup but neither wakes on nor consumes pending data; CI's runtime-grants job now runs the runtime's unit tests with its features. The nested desktop Counter and Notes checks pass with this runtime. |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||