Skip to content

0.13.2: a bounded wait for a program started with a bound lifetime - #36

Merged
Sunrisepeak merged 1 commit into
mainfrom
openkal-windows-0.13.2
Oct 27, 2026
Merged

Sunrisepeak merged 1 commit into
mainfrom
openkal-windows-0.13.2

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

kal_timeout_wait_process read a process word as a handle (okw::unpack(p.h)). A program started with KAL_SPAWN_BOUND_LIFETIME is named by its record (kind bound), so every bounded wait for it failed with an error. A caller that bounds a command then waited without the bound: mcpp's [hooks] timeout_seconds did not stop a hook on Windows (mcpp e2e 317: the five-second hook ran to its end), and its polls of a running program (try_wait) never saw it end.

The wait now resolves the word as every other operation of process.cpp does (process_of, exposed as okw::process_handle).

tests/bounded_wait_of_a_bound_program.cpp: a bound cmd /c ping -n 3 is waited for with a 100 ms bound (expires) and then with a 20 s bound (ends, status 0); a bound cmd /c exit 3 reports 3.

Co-authored-by: speak-agent [email protected]

@Sunrisepeak
Sunrisepeak merged commit 74863df into main Oct 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant