mirror of
https://github.com/libracoder/kiri.git
synced 2026-12-06 23:32:31 +09:00
After `systemctl restart kiri`, `packaging/linux/test-host.sh` only waited for `-S /run/kiri/docker.sock`. The daemon binds the socket before writing its POSIX access list and booting the engine, leaving a 2 ms race where the unprivileged `setpriv` check ran before socket access was granted and the daemon started accepting requests. Add a bounded `wait_engine` helper polling `/run/kiri/docker.sock` until `/_ping` returns `OK` (up to 30 s) and use it after both `kiri host-access` and `systemctl restart kiri`.