Files
hyperframes/packages/cli/src/utils
Miguel Ángel 2a9912ec99 fix(cli): stop the cancellable-process test reading a pid file mid-write (#4080)
Same defect shape as the earlier preflight cancel test fix: the wait
condition only checked that the ready file existed, which goes true
as soon as the write opens (and truncates) it, before its content
lands. A read landing in that window parsed an empty string to 0.
The wait condition now also validates the parsed value is a real
positive pid before accepting it, retrying otherwise. Reproduced
with a busy-wait harness that hit the empty-file race in roughly
two of five attempts and confirmed clean after the fix.
2026-09-18 10:37:31 -04:00
..
2026-03-21 22:43:56 -07:00
2026-03-21 22:43:56 -07:00