store child process in machine state
This commit is contained in:
committed by
Bennet Bleßmann
parent
43dd1587fb
commit
1ee4f7a55f
@@ -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(_) => {
|
||||
|
||||
Reference in New Issue
Block a user