feat(process): shared child with stop command

This commit is contained in:
DecDuck
2024-12-30 15:37:29 +11:00
parent c3f62222fe
commit 6b96e408b2
6 changed files with 51 additions and 18 deletions

View File

@ -25,5 +25,5 @@ pub fn kill_game(
) -> Result<(), String> {
let state_lock = state.lock().unwrap();
let mut process_manager_lock = state_lock.process_manager.lock().unwrap();
process_manager_lock.terminate_child(game_id).map_err(|x| x.to_string())
process_manager_lock.kill_game(game_id).map_err(|x| x.to_string())
}