You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows WHPX: a3s-box wait prints 0 after kill while inspect ExitCode is 137 #256
On Windows WHPX (a3s-box 3.2.5), after a3s-box kill terminates a detached box, inspect correctly reports exit code 137, but a3s-box wait prints 0 on stdout.
This breaks any automation that treats wait as the source of truth for workload termination status (CI scripts, supervisors, compose-like wrappers).
Environment
a3s-box 3.2.5, VM backend: whpx
Repro
a3s-box run -d --name wait-kill-demo alpine:3.20-- sleep 300# in another terminal / process:
a3s-box wait wait-kill-demo
# meanwhile:
a3s-box kill wait-kill-demo
a3s-box inspect wait-kill-demo
a3s-box rm -fwait-kill-demo
wait must surface the same terminal exit code as inspect / ps for the waited box (here 137 after kill), and the wait process exit status should be consistent with documented CLI semantics for non-zero workload exits.
First-principles test case
WIN-POS-18 / WIN-LIFE-wait-kill:
detached long sleep
background wait
kill
assert wait stdout == 137 (or documented signal mapping) and matches inspect.State.ExitCode
Activity
ZhiXiao-Lin commentedon Sep 7, 2026
Matrix row
WIN-POS-28in #257. Related stop/kill force WARN: #254. Parent: #252.fix(windows): fail-closed WHPX negatives and honest wait exit codes