store child process in machine state

This commit is contained in:
Bennet Bleßmann
2025-07-20 21:08:44 +02:00
committed by Bennet Bleßmann
parent 43dd1587fb
commit 1ee4f7a55f
3 changed files with 9 additions and 0 deletions

View File

@@ -8497,12 +8497,16 @@ impl Machine {
match command.spawn() {
Ok(child) => {
let pid = child.id();
self.machine_st.child_processes.insert(pid, child);
self.machine_st.bind(
pid_r
.as_var()
.expect("invalid values should have been rejected on the prolog side"),
fixnum_as_cell!(Fixnum::build_with(pid)),
);
Ok(())
}
Err(_) => {